Hmm... ah, got you. the SSL_read may be partial leaving data in the SSL
internal buffer, and as no further network activity is seen (all data
has already been received by SSL) and the connection gets stuck.
Awaiting patch, and is beginning to feel a strong smell of having to get
Squids I/O model quite rewritten before SSL fits in there nicely without
too many hacks..
Regards
Henrik Nordström
Squid Hacker
"noel@burton-krahn.com" wrote:
>
> After days of debugging, I have finally isloated our hang during file
> upload.
>
> For the benefit of squid-bugs, here is the problem: We run squid in
> accelerator mode to a local apache server. If we do a file upload
> through squid to a cgi script via https, the connection hangs. If we
> use http instead, or if we call apache directly, everything's ok.
>
> I'm running the latest squid in cvs as of Oct 14, 2001. on a
> Linux-2.4.2, redhat-7.1 box.
>
> The problem lies in squid's select() logic. SSL buffers decrypted
> bytes, so SSL_pending() will show there are more bytes to read in the
> SSL stream, but select() on the filehandle will never return after the
> client write the last (encrypted) byte.
>
> My solution is to hack something in comm_select to check if
> SSL_pending() is true, and if so, call the read method without
> select()ing.
>
> I should have this fixed this afternoon.
>
> --Noel
Received on Mon Oct 15 2001 - 14:39:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:32 MST