<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=107310315-09042006><FONT size=2>There is a obvious and severe 
bug in spread 4.0 rc2, which may cause clients hard to connect to 
server.</FONT></SPAN></DIV>
<DIV><SPAN class=107310315-09042006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=107310315-09042006><FONT size=2>The bug is in file sp.c at line 
274.</FONT></SPAN></DIV>
<DIV><SPAN class=107310315-09042006><FONT size=2>The old source 
is:</FONT></SPAN></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;sel_time.tv_sec = wait_time.usec;<BR><SPAN 
class=107310315-09042006>The right code&nbsp;should be:</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=107310315-09042006>&nbsp;&nbsp;sel_time.tv_usec = 
wait_time.usec;<BR></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=107310315-09042006>The bug cause the timeout value 
of select() function invalid, so the select() return immediately with out wait. 
So the client may miss the message returned by server and cause the 
SP_connect_timeout() return CONNECTION_CLOSED.</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=107310315-09042006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2><SPAN class=107310315-09042006>The code was downloaded with 
url <A 
href="http://www.spread.org/download/spread-src-4.0.0.rc2.tar.gz">http://www.spread.org/download/spread-src-4.0.0.rc2.tar.gz</A>&nbsp;yesterday.</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN 
class=107310315-09042006>&nbsp;</DIV></SPAN></FONT></BODY></HTML>