D 2014-04-02T12:47:26.099 J comment

Issue

\r\nOn\swindows,\sa\sreadable\sfileevent\son\sa\sfailed\sasync\ssocket\sconnect\sonly\sfires,\sif\sthere\sis\salso\sa\swritable\sfileevent.\r\n\r\n

Examples

\r\nFollowing\sexamples\sare\sin\swish\sso\sthere\sis\san\sevent\sloop\srunning.\r\n\r\n

Only\sreadable\sfileevent\sdoes\snot\sfire

\r\n\r\n\r\n%\sset\sh\s[socket\s-async\slocalhost\s30001]\r\nsock448\r\n%\sfileevent\s$h\sreadable\s{puts\sR:[fconfigure\s$h\s-error];close\s$h}\r\n\r\n\r\n

Readable\sand\swritable\sfileevent\sfire\sboth

\r\n\r\n\r\nFileevent\sfires,\sif\sthere\sis\salso\sa\swritable\sfile\sevent\s(\sas\sin\sbug\s[794839]):\r\n\r\n%\sset\sh\s[socket\s-async\slocalhost\s30001]\r\nsock448\r\n%\sfileevent\s$h\sreadable\s{puts\sR:[fconfigure\s$h\s-error];close\s$h}\r\n%\sfileevent\s$h\swritable\s{puts\sW}\r\nW\r\nR:connection\srefused\r\n\r\n\r\n

TCL8.6.1

\r\n\r\nThe\ssame\sissue\sis\salso\spresent\sin\stcl8.6.1,\sbut\salready\sfixed\sin\sbranch\sbug-13d3af3ad5,\scheckin\s[f1d2f6dbad]. J icomment Fix\sand\stest\sin\scheckin\s[29adf4bac3]\sof\sbranch\sbug-581937ab1e J login oehhar J mimetype text/x-fossil-wiki J username oehhar K 581937ab1e2a1c69d61b23bd90179bd35f212d8d U oehhar Z 72576c06d624cb01e71fee6bad314f53