<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2><FONT size=3>1.In our case, the web server sent TCP fin,ack to
stunnel <BR>but the stunnel just sent TCP ack, so it is TCP half close.<BR>2.The
stunnel use read() function that try to read more data from sock_fd <BR>but
return 0(EOF) because TCP half close.<BR>3.At this moment, the stunnel call
SSL_shutdown() function <BR>that sent close_notify alert but a broswer(IE6 or
firefox1.0) return no message.<BR><BR><BR>I just modify stunnel 4.07 client.c to
set sock_wr=0 <BR>that will close TCP connection from stunnel to web server when
read() EOF. <BR><BR></FONT><FONT color=red><BR><FONT size=3>client.c:550
<BR>====from====<BR>sock_rd=0;<BR><BR>==== to
====<BR>sock_rd=0,sock_wr=0;</FONT></FONT><BR><BR><BR><FONT size=3>Then,
everything is seems to work good.<BR>Maybe something will be inefficient but
good work in our embbeded linux now.</FONT><BR></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Sincerely,
Stanley(�ӯq)<BR>----------------------------------------------------------<BR>Alpha
Networks Inc.<BR>Engineer, Fimware Development Dept. III<BR>TEL:886-3-5636666
EXT:6563<BR>E-mail:Stanley_Li@alphanetworks.com<BR>Addr: No. 8 Li-shing 7th Rd.,
Science-based <BR>Industrial Park, Hsinchu, Taiwan,
R.O.C.</FONT></DIV></BODY></HTML>