Closed weiznich closed 7 years ago
Is it better that using Timeout for all requests? Not only connect, but for read/write Timeout too.
@siddontang
Is it better that using Timeout for all requests? Not only connect, but for read/write Timeout too.
IMO, read/write timeouts are not very useful practically. What required is per-call request timeout, deadline (instant) for for whole operation, not duration or single step.
@stepancheg
So we should add Timeout for request, but not only for connect here?
@siddontang implementing request timeout is a different, harder issue, and connection timeout is useful itself, so I think I'll merge this patch as soon as you implement minor changes I requested.
Thanks!
On windows the client goes in a infinite loop if it could not connect to the given server. This makes it possible to configure a timeout to prevent it.