comparison src/process.c @ 43642:bfd9fa0143d9

(Fopen_network_stream): Always call turn_on_atimers around connect.
author Kim F. Storm <storm@cua.dk>
date Sun, 03 Mar 2002 00:31:22 +0000
parents 43f83a792e17
children 7ec801358b7e
comparison
equal deleted inserted replaced
43641:7fa38e96dd0f 43642:bfd9fa0143d9
2035 It'd be nice to be able to control the connect timeout 2035 It'd be nice to be able to control the connect timeout
2036 though. Would non-blocking connect calls be portable? 2036 though. Would non-blocking connect calls be portable?
2037 2037
2038 This used to be conditioned by HAVE_GETADDRINFO. Why? */ 2038 This used to be conditioned by HAVE_GETADDRINFO. Why? */
2039 2039
2040 if (!is_non_blocking) 2040 turn_on_atimers (0);
2041 turn_on_atimers (0);
2042 2041
2043 ret = connect (s, lres->ai_addr, lres->ai_addrlen); 2042 ret = connect (s, lres->ai_addr, lres->ai_addrlen);
2044 xerrno = errno; 2043 xerrno = errno;
2045 2044
2046 if (!is_non_blocking) 2045 turn_on_atimers (1);
2047 turn_on_atimers (1);
2048 2046
2049 if (ret == 0 || xerrno == EISCONN) 2047 if (ret == 0 || xerrno == EISCONN)
2050 { 2048 {
2051 is_non_blocking = 0; 2049 is_non_blocking = 0;
2052 /* The unwind-protect will be discarded afterwards. 2050 /* The unwind-protect will be discarded afterwards.