Artifacts Associated With Ticket ac661a684d5abbdd
Ticket change [43f529f813] (rid 137264) by oehhar on 2014-03-14 17:27:26:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The man-page of Tcl_NotifyChannel [http://www.tcl.tk/man/tcl8.6/TclLib/CrtChannel.htm] writes: <verbatim> Tcl_NotifyChannel is called by a channel driver to indicate to the generic layer that the events specified by mask have occurred on the channel. Channel drivers are responsible for invoking this function whenever the channel handlers need to be called for the channel. </verbatim> It suggests that a registered writable proc is called after this notification. This is not the case, if a flush is pending and no error occured for the channel. In this case, a flush is tried and no proc is called. IMHO this fact should be noted on the man-page. The following code brings a channel in the state, where a Tcl_NotifyChannel will not fire the fileevent: <verbatim> set h [socket -async unreachable a] fileevent $h writable "puts Write;close $h" fconfigure $h -blocking 0 puts $h ABC flush $h # Now a flush is pending on the socket # When the cahnnel driver now calls Tcl_NotifyChannel, nothing happens the </verbatim> On a second call to Tcl_NotifyChannel, the fileevent will fire, as the first flush falied and it is in error state.
- foundin initialized to: "8.6.1"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "25. Channel System"
- title initialized to:
Tcl_NotifyChannel man page: "no writable callback on pending flush" missing
- type initialized to: "Bug"
Ticket change [df0b89d605] (rid 138344) by oehhar on 2014-06-03 15:51:20:
- assignee changed to: "dgp"
- icomment:
Recent changes by DGP changed the behaviour like that: If there is a flush pending, Tcl_NotifyChannel with writable flag set will invoke the flush. If the flush succeeds, the user function is not called.
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
Ticket change [bbf09016a5] (rid 188643) by oehhar on 2020-11-17 10:12:22:
- closedate changed to: "2459170.92525487"
- closer changed to: "oehhar"
- icomment: "Added comment with checkin [b0f97d8082]."
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "oehhar"