Skip to content
Tcl Source Code Artifact [755168baf2]
Login

Artifact [755168baf2]

Artifact 755168baf28b70cdd98b91e81852f5544867476c:

Ticket change [755168baf2] - Ticket [3056775fffffffff|3056775fff] <i>Socket -server stops accepting connections under load</i> status still Open with 6 other changes by andreas_kupries on 2010-09-23 04:23:55.
D 2010-09-23T04:23:55
J assignee hobbs
J icomment Hi\sTwylite.\sHaving\sstarted\sto\slook\sinto\sthis\sa\sfew\squestions\s...\n\nCan\syou\sprovide\sus\swith\sa\sunified\sdiff\sfor\sthe\spatch\s?\sOr\scontext\sdiff.\sAnything\swhich\stells\sme\snot\sjust\sthe\sline\snumbers,\sbut\salso\sshows\sthe\srelevant\scode\sand\sthings\saround\sit.\sUsing\sthe\sline\snumber\swith\sTcl\sHead\sit\sseems\sthat\syou\sare\sputting\sthe\slocks\saround\sthe\sstatement\n\n\s\s\s\s"infoPtr->acceptEventCount--;"\n\nhowever\sI\sam\snot\ssure.\sWith\sthe\splain\spatch\sI\sam\sleft\sguessing.\seven\sif\smy\sguess\sseems\ssensible.\nExcept\sthat\sthere\sare\sother\sstatements\salso\smodifying/querying\sacceptEventCount\sand\spossinbly\sshould\sbe\slocked\sas\swell.\n\nAnother\sissue\sI\shave\sis\sthat\sit\sis\sextremely\sunclear\show\sthis\sstructure\sis\smodified\sby\smultiple\sthreads.\sThis\smay\sbe\smy\sown\snon-knowledge\sof\sthe\s(windows)\snotifier,\sso\sI\shope\syou\scan\senlighten\sme.\n\nFirst,\sthe\ssocket\sshould\sbe\sowned\sby\sa\ssingle\sthread\sand\sno\sother\sshould\saccess\sit.\n\nSecond,\s\swhen\sI\straced\sthe\scall-sequence\sa\sbit\sI\ssaw\sthat\sTcpAccept\sis\scalled\sby\sSocketEventProc,\swhich\sis\sthe\saction\sfunction\sfor\san\sEvent.\sEvents\sare\sin\squeues,\sone\squeue\sper\sthread,\sso\swhen\sa\ssocket\sis\sready\sthe\snewly\sminted\sevent\sis\sput\sinto\sa\ssingle\squeue,\sof\sthe\scurrent\sthread.\n\nSo,\sif\smultiple\sthreads\struly\saccess\sthe\sstructure,\sthen\sthat\smay\sbe\sthe\sbug,\smaking\sthe\slocks\syou\sset\sa\sband-aid\shiding\sthe\sactual\sproblem.\sI\shope\syou\sunderstand\snow\swhy\sI\swish\sto\sknow\smore.\n\nI\sam\snow\stemporarily\sre-assigning\sthis\sbug\sto\sJeff\sto\sget\shis\sinput\son\sthis\swell.\n
J login andreas_kupries
J mimetype text/plain
J priority 9\sImmediate
J username andreas_kupries
K 3056775fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 48a71b30615a886fd3a09cffab1c6bc8