mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't call select_fd unless timeout is desired.
This commit is contained in:
parent
9d9e242e5d
commit
7ec83a1b2a
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-01 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* connect.c (acceptport): Don't call select_fd when timeout is not
|
||||||
|
requested.
|
||||||
|
|
||||||
2003-11-01 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-11-01 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* host.c: Removed the ip_default_family global variable.
|
* host.c: Removed the ip_default_family global variable.
|
||||||
|
@ -511,8 +511,9 @@ acceptport (int local_sock, int *sock)
|
|||||||
socklen_t addrlen = sizeof (ss);
|
socklen_t addrlen = sizeof (ss);
|
||||||
|
|
||||||
#ifdef HAVE_SELECT
|
#ifdef HAVE_SELECT
|
||||||
if (select_fd (local_sock, opt.connect_timeout, 0) <= 0)
|
if (opt.connect_timeout)
|
||||||
return ACCEPTERR;
|
if (select_fd (local_sock, opt.connect_timeout, 0) <= 0)
|
||||||
|
return ACCEPTERR;
|
||||||
#endif
|
#endif
|
||||||
if ((*sock = accept (local_sock, sa, &addrlen)) < 0)
|
if ((*sock = accept (local_sock, sa, &addrlen)) < 0)
|
||||||
return ACCEPTERR;
|
return ACCEPTERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user