.
D 2009-07-24T16:55:14
J icomment To\sclarify,\sper\sAlexandre's\srequest:\s\sif\syou\shave\sa\scoro\swhich\sis\sin\sthe\sprocess\sof\shandling\sfileevents\son\sa\ssocket\s(socket10,\slet's\ssay)\sand\syou\sdecide\syou\swant\sto\snot\shandle\sevents\son\sthat\ssocket\sfor\sa\sfew\sseconds,\sso\syou\sschedule\san\s[after]\sevent\sto\strigger\sto\senable\syou\sto\sre-establish\sthe\s[fileevent\s$sock]\s...\syou\smust\sstore\sthe\ssocket\sname\s(socket10)\sin\sthe\svariable\ssock,\swhich\smay\sbe\sa\scoro\svariable,\shence\sinaccessible\sto\sother\scoros.\s\sIf\sa\sdifferent\sprocessing\sstream,\sor\scoro,\sdecides\sit\swants\sto\sclose\ssocket10,\sit\scan't\ssafely\sdo\sthat\suntil\sand\sunless\sit\shas\snotified\sthe\s\nfirst\scoro\sof\sits\sintention,\sso\sthat\sit\scan\sforget\sabout\ssocket10\s-\scancel\sany\s[after]\sevents\sit\smay\shave\sscheduled.\n\nIf\sthis\ssounds\slike\sa\scontrived\sexample,\sit's\snot.\s\sI\shave\salmost\sexactly\sthis\sproblem\sin\sadding\sinput\sthrottling\sto\sWub\sright\snow,\sand\sanyone\swriting\sa\sproducer/consumer\spair\swith\sbuffering\swhere\sthe\stwo\sparts\smake\suse\sof\smodern\sTcl\sfacilities\ssuch\sas\scoros\sor\s[apply]\sor\seven\s[interp]\swill\shave\ssimilar\sproblems.\s\sThe\samount\sof\sdata\swhich\sneeds\sto\s\nbe\sshared\sbetween\sthe\sdistinct\sprocessing\selements\sis\stoo\sgreat,\sand\sis\simposed\sentirely\sby\sthe\srapid\scycling\sof\schan\snames.\n\nIt\sis\strue\sthat\sone\scould\sfix\sthe\scycling,\sbut\sthe\sidea\sof\sencoding\snames\swith\ssignificant\sinformation\salso\sappeals\sto\sme,\sand\scomes\sfor\sfree\swith\sthis\sfix.\n\n
J login coldstore
J mimetype text/plain
J username coldstore
K 2826430fffffffffffffffffffffffffffffffff
U coldstore
Z 4aa27afc62ba5696d4e484c512b50dcc