Skip to content
Tcl Source Code Artifact [b7a186a39e]
Login

Artifact [b7a186a39e]

Artifact b7a186a39efcf1cad704d0ca00b3b605f61d73006b20deb04c7cb5d6170909d5:

Ticket change [b7a186a39e] - Ticket [de232b49f26da1c1|de232b49f2] <i>write-only nonblocking refchan and Tcl internal buffers</i> status still Open with 3 other changes by pooryorick on 2024-03-31 17:03:58.
D 2024-03-31T17:03:58.105
J icomment I\sdon't\ssee\sanything\swrong\swith\sdelaying\sthe\swritable\sevent\snotification\r\nuntil\sa\sconnection\sis\sestablished,\sbut\sthat\sshould\sbe\sdone\sin\ssuch\sa\sway\r\nthat\sthis\sissue\sremains\sfixed.\s\sI\shave\san\sidea\sfor\sthat:\s\sThe\sissue\shere\r\nis\sthat\s"writable"\sevent\snotice\shappens\sonce,\sthen\sa\s"writable"\sevent\r\nhappens\sonce\sbut\sthen\snever\sagain\sbecause\sTcl\swrites\sto\sa\sbuffer\sinstead\r\nof\scalling\sthe\s"write"\sprocedure\sfor\sthe\srefChan.\s\sI\sthink\sit's\spretty\r\nclear\sthat\srefchan\simplementations\sshouldn't\sbe\sburdened\swith\sthe\sduty\r\nof\smaintaining\stimers,\sso\ssomehow,\sTcl\smust\skeep\sthe\s"writable"\sevent\r\nsignaling\suntil\sthe\s"write"\sprocedure\sof\sthe\srefchan\sis\sactually\scalled.\r\nThe\stimer\sin\sUpdateInterest()\sis\scurrently\staking\scare\sof\sthat.\s\sThere\r\nis\san\sopportunity\sto\shave\sWrite()\sset\sup\sthe\stimer\sinstead,\ssince\sthat's\r\nthe\sprocedure\sthat\swould\scall\srefchan\sif\sit\sa\sbuffer\swas\sfull.\s\sIn\sthat\r\ncase,\sthe\stimer-based\s"writable"\sevent\swould\sonly\shappen\safter\ssome\r\ninitial\sevent\shas\slead\sto\sa\scall\sto\sWrite().
J login pooryorick
J mimetype text/x-fossil-wiki
K de232b49f26da1c18e07513d4c7caa203cd27910
U pooryorick
Z 7e20bfeb23b3ca3ad7c8b35ab7b150e9