Overview
| Artifact ID: | db7278b7f588d6545b1a648f8c12ae2b0da25933b9b8da78b9b831d9259488bf |
|---|---|
| Ticket: | 080f846fd58958efeaa5e2247622dc0ee7fa1ff7
Channel system generating writable events BEFORE channel is open (refchan) |
| User & Date: | jan.nijtmans on 2024-03-30 14:42:53 |
Changes
- icomment:
I see two sides: Any channel implementation should be robust enough, if a "write" is executed on a channel which is not yet fully opened, it should just return 0 as a signal to the caller to try again later (or - if the channel is buffered, put the data in the buffer). Is twapi (and the Tcl socket implementation on windows) doing that correctly? If yes, additional timing events shouldn't matter: nothing is really written to the underlying channel. If no, that's a bug that should be fixed first. That said, I don't know the reason those timer events are generated. Maybe as a workaround for a buggy channel implementation. If we would remove this, it will mean that the buggy channel implementation will - again - start to behave wrong. Do we want that? In addition, is the socket-14.11.0 testcase written robust enough? For now, many more questions than answers. But removing this timer code is not the first thing I would recommend. Better, look first at the channel code behaving bad.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"