[distcc] Re: distcc : multi A records - small timeout on connect
[PATCH]
Martin Pool
mbp at samba.org
Wed May 28 06:49:22 GMT 2003
Just a couple of other notes about the connect patch, for your
information:
- It is not portable to rely on the value of the timeval argument to
select() after the call. Linux updates it to show the remaining
time but other OSs may not. I guess this does not exactly break
your function but it is worth knowing.
- connect() should not be called repeated when trying a nonblocking
connection. It's different to read() and write(). Instead you
connect() once to kick it off, and then select() until the socket
is ready.
--
Martin
More information about the distcc
mailing list