+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>
* host.c: Removed the ip_default_family global variable.
socklen_t addrlen = sizeof (ss);
#ifdef HAVE_SELECT
- if (select_fd (local_sock, opt.connect_timeout, 0) <= 0)
- return ACCEPTERR;
+ if (opt.connect_timeout)
+ if (select_fd (local_sock, opt.connect_timeout, 0) <= 0)
+ return ACCEPTERR;
#endif
if ((*sock = accept (local_sock, sa, &addrlen)) < 0)
return ACCEPTERR;