[stunnel-users] read sock return size 0 situation( it cause http web server to wait timeout for long time)
Michal.Trojnara at mirt.net
Tue Feb 15 21:17:50 CET 2005
On 2005-01-18, at 02:43, Stanley wrote:
> 1.In our case, the web server sent TCP fin,ack to stunnel
> but the stunnel just sent TCP ack, so it is TCP half close.
> 2.The stunnel use read() function that try to read more data from
> but return 0(EOF) because TCP half close.
> 3.At this moment, the stunnel call SSL_shutdown() function
> that sent close_notify alert but a broswer(IE6 or firefox1.0) return
> no message.
> I just modify stunnel 4.07 client.c to set sock_wr=0
> that will close TCP connection from stunnel to web server when read()
I'm NOT going to break SSL protocol in stunnel to support broken SSL
TIMEOUTclose = 0
configuration option instead.
More information about the stunnel-users