<i>Socket -server stops accepting connections under load</i> status still Open with 4 other changes
by
.
D 2010-09-23T05:59:19
J icomment Your\sexplanation\smakes\ssense,\sand\sarmed\swith\sit\sI\sbelieve\sI\shave\straced\sthe\svarious\sconnections\s...\s"InitSockets()"\sis\scalled\sto\sset\sthe\ssocket\shandling\sin\sa\sThread.\sThis\screates\sthe\sco-thread,\swhose\simplementation\sis\s"SocketThread()".\sST()\screates\sthe\swindow\sto\sreceive\smessages\sand\sthen\ssimply\sruns\sa\sget/dispatch\sloop.\sThis\swindows'\sclass\swas\sspecially\screated\sby\sIS()\sas\swell\s(before\sthe\sthead\swas\sspawned),\sand\sfrom\sthere\sDispatchMessage()\sknows\sthat\sit\shas\sto\scall\s"SocketProc()",\swhich\stherefore\sruns\sin\sthe\sco-thread.\sIt\slocks\sthe\slist,\ssearches\sfor\sthe\sproper\sinfoPtr,\sand\smodifies\sit,\sper\sthe\smessage.\sThe\sevent-queue\sand\shandling\sis\srun\sby\sthe\sthread\sitself,\swhich\sgoes\sthrough\s"SocketEventProc()"\sand\s"TcpAccept()",\sand\sis\smissing\sthe\slock.\n\nOk.\sYour\sfix\sis\sa\sfix,\snot\sa\sband-aid.\n\nTaking\sthe\sbug\sback\sto\smyself.\n\nI\swill\swait\sfor\syour\sunified\sdiff.\n\nThis\sstructure\sshould\sbe\sdocumented.\sI\swill\swrite\sthat\sup\swhile\swaiting\sfor\syour\sdiff.\sBack-porting\sto\sthe\s8.5\sand\s8.4\sbranches\sshould\sbe\seasy.\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 3056775fffffffffffffffffffffffffffffffff
U andreas_kupries
Z e288cbe26c2a2ae2f630a36cbc7fcc4c