Skip to content
Tcl Source Code Artifact [2c6e36131d]
Login

Artifact [2c6e36131d]

Artifact 2c6e36131d73ccc965ec9b17377dc29f2321b40b:

Ticket change [2c6e36131d] - Ticket [794839ffffffffff|794839ffff] <i>async sockets: readable vs writable fileevents</i> status still Open with 4 other changes by davygrvy on 2004-05-06 01:30:25.
D 2004-05-06T01:30:25
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nUsing\sthe\sfollowing\stest\scase:\n\nproc\sfoo\s{fd\swhich}\s{\n\s\sputs\s"$fd:\serrstat\s$which\s[fconfigure\s$fd\s-error]"\n\s\scatch\s{close\s$fd}\n}\nset\sport_not_open\s65432\nset\sfd\s[socket\s-async\slocalhost\s$port_not_open]\nfileevent\s$fd\sreadable\s[list\sfoo\s$fd\sreadable]\nfileevent\s$fd\swritable\s[list\sfoo\s$fd\swritable]\n\nI\sfound\sthat\swhen\sI\sadded\sthe\sability\sfor\san\sasync\sconnection\s\nthat\sreturned\san\serror\sto\sfire\sboth\sread\sand\swrite\shandlers,\s\nonly\sthe\sfirst\swould\sbe\scalled\sdue\sto\sthe\s'close\s$fd'.\s\sIf\sneither\s\nclosed,\sboth\swould\sbe\scalled\srelentlessly.\n\n[committed\sfix\sto\sHEAD]\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 794839ffffffffffffffffffffffffffffffffff
U davygrvy
Z a6ca361625e49010d8ea13b7688a6d0d