Skip to content
Tcl Source Code Artifact [1b997e30ec]
Login

Artifact [1b997e30ec]

Artifact 1b997e30ecfdbdab44e1f143c134ccfc792f87e9:

Ticket change [1b997e30ec] - New ticket [794839ffffffffff|794839ffff] <i>async sockets: readable vs writable fileevents</i>. by ralfixx on 2003-08-25 18:43:18.
D 2003-08-25T18:43:18
J assignee nobody
J cmimetype text/plain
J comment Try\sto\sasync-connect\sto\sa\shost/port\swhich\srefuses\sthe\nconnection:\n\n\s\s\s\sproc\sfoo\s{fd}\s{\n\s\s\s\s\s\sputs\s"$fd:\serrstat\s[fconfigure\s-error\s$fd]"\n\s\s\s\s\s\sclose\s$fd\n\s\s\s\s}\n\n\s\s\s\s#\schose\sany\sport\swhich\sis\snot\sopen\son\slocal\smachine\n\s\s\s\sset\sport_not_open\s65432\n\s\s\s\sset\sfd\s[socket\s-async\slocalhost\s$port_not_open]\n\nNow\swe\sneed\ssome\smeans\sto\sget\sinformed\swhen\sthe\nconection\sis\navailable,\sthe\smanpage\stells\suse\sto\suse\sfileevent.\n\nI\sfind\sthat\son\sIRIX\sboth\sreadable\sand\swritable\nfileevents\swork\sto\ndetect\sthe\sfailed\sconnection:\n\n\s\sfileevent\s$fd\sreadable\s[list\sfoo\s$fd]\n\s\sfileevent\s$fd\swritable\s[list\sfoo\s$fd]\n\nboth\simmediately\sshow\sthe\sfailed\sconnection.\n\nHowever\son\sWindows,\sonly\sthe\s`writable'\sfileevent\ntriggers,\sthe\n`readable'\sjust\shangs\saround\sforever.\s\sThe\ssame\sgoes\nfor\sconnection\ntimeouts\s(host\soffline):\sreadable\sfileevents\sdo\snot\ntime\sout,\n`writables'\sdo.\n\nDavid\sGravereaux\ssaid:\s"...\sI\sagree\sthis\sis\sa\sproblem.\nPlease\spost\sthis\sbug\sto\sthe\ssourceforge\sbug\sdb."\n\nSo\shere\swe\sare...\n
J foundin obsolete:\s8.3.3
J priority 5\sMedium
J resolution None
J status Open
J submitter ralfixx
J subsystem 04.\sAsync\sEvents
J title async\ssockets:\sreadable\svs\swritable\sfileevents
J type Bug
K 794839ffffffffffffffffffffffffffffffffff
U ralfixx
Z f71493cab8044a6598d0ce097c491cf8