Overview
| Artifact ID: | 67001f6c3a853e3ab08347342d21b0652e7beb75 |
|---|---|
| Ticket: | 1758a0b6035fcb3425cae757aeba704d67346902
Flushing channels can caused leaked file-descriptors |
| User & Date: | a3a3el on 2014-03-24 10:17:47 |
Changes
- icomment:
On giving this more thought, I realized that it is also possible that the server might close the channel with buffered output (attached as server2.tcl), the client close its socket before the output is completely flushed and we still end up with leaked descriptors even with my suggested patch. Moving the check to see whether the channel should be closed before the check of the BG_FLUSH_SCHEDULED flag appears to solve that too (attached as flush_channel2.patch).
- login: "a3a3el"
- mimetype: "text/plain"