issue 341

This commit is contained in:
Matt Story 2018-04-18 18:19:18 -04:00
parent d2af45e3fb
commit cc25d828fb
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func Connect(addr string) (*Conn, error) {
}
func ConnectWithSize(addr string, readSize int, writeSize int) (*Conn, error) {
conn, err := net.Dial(getProto(addr), addr)
conn, err := net.DialTimeout(getProto(addr), addr, time.Second*5)
if err != nil {
return nil, err
}