mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r426: fixed bug noticed by wim.delvaux@adaptiveplanet.com in handling of timeout in socket connections
(This used to be commit 88278b24de4e3e408ac8a6139bd375a72bc664ce)
This commit is contained in:
parent
0e551158b7
commit
fc7a1ee35e
@ -741,6 +741,7 @@ int open_socket_out(int type, struct in_addr *addr, int port ,int timeout)
|
||||
if (ret < 0 && (errno == EINPROGRESS || errno == EALREADY ||
|
||||
errno == EAGAIN) && (connect_loop < timeout) ) {
|
||||
smb_msleep(connect_loop);
|
||||
timeout -= connect_loop;
|
||||
connect_loop += increment;
|
||||
if (increment < 250) {
|
||||
/* After 8 rounds we end up at a max of 255 msec */
|
||||
|
Loading…
x
Reference in New Issue
Block a user