Re: Squid patch

From: Michael Pelletier <mikep@dont-contact.us>
Date: Fri, 18 Jul 1997 14:44:57 -0400 (EDT)

[copied to the squid-users list]

On Fri, 18 Jul 1997, Jordan Mendelson wrote:

> Just a note about that retry patch you wrote. Linux, at least my
> version, doesn't include options for timeout in socket opts, so you need
> to use the select() timeout value instead if you want one.
>
> Strangely enough, Linux documentation says it does have the SO_RCVTIMEO
> value, but my 2.0.29 kernel doesn't have it listed anywhere.

Hmm... Interesting. Does it fail to compile?

I think it shouldn't be too hard to fix that, since in the final analysis
the SO_RCVTIMEO value is mostly just used as a glorified global variable
to set the socket lifetime in the comm_connect_addr() function in
[patched] comm.c line 546.

What do you think a good alternate approach might be? Maybe a little
FD_ENTRY variable to hold the connect timeout for that descriptor?

        -Mike Pelletier.
Received on Fri Jul 18 1997 - 11:55:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:48 MST