Skip to content
Tcl Source Code Artifact [b25c598984]
Login

Artifact [b25c598984]

Artifact b25c5989844bda5bb002070410986c693b561627:

Ticket change [b25c598984] - Ticket [2936225fffffffff|2936225fff] <i>[chan copy] overruns slow receiver</i> status still Open with 4 other changes by ferrieux on 2010-03-08 08:16:25.
D 2010-03-08T08:16:25
J icomment Got\sit.\s\sThe\shole\sin\sthe\sreflection\sAPI\sconsists,\sas\ssuspected\searlier,\sin\sthe\sinability\sfor\sthe\sreflected\schannel\sto\stell\sits\swriter\sEWOULDBLOCK.\sIndeed,\sproper\sasync\sfcopy\sfunction\srequires\sthat\sthe\soutput\schannel\sget\sits\sBG_FLUSH_SCHEDULED\sswitched\son,\swhich\stells\sfcopy\sto\srefrain\sfrom\swriting\suntil\sa\sfileevent\swritable\sfires.\n\nBut\sfor\sthis\sflag\sto\sbe\sset,\s\sin\sFlushChannel\sat\stclIO.c+2346,\san\serrorCode==EWOULDBLOCK\s(or\sEAGAIN)\smust\sbe\sdetected.\n\nWhile\sthis\soccurs\sroutinely\sfor\snormal,\sfd-based\schannels,\sso\ssuch\sthing\scan\shappen\sfor\sa\sreflected\schannel,\swhich\sis\sa\spure\sscript\sthing...\n\nTo\skeep\sthe\sAPI\ssimple,\sI\ssuggest\sto\ssimply\sdefine\sthe\s-1\sreturn\svalue\sfrom\s[write]\sto\smean\sEWOULDBLOCK.\sA\stypical\srefchan\slike\scolin's\swould\suse\s[chan\spending\soutput]\son\sits\sunderlying\s(nonblocking\s&\sunbuffered)\sfd\sto\sdecide\swhether\sor\snot\sto\s\ssend\sthis\ssignal\supstream.\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2936225fffffffffffffffffffffffffffffffff
U ferrieux
Z 1e9d1b83e152784a7f3b21a8a9404857