Overview
| Artifact ID: | 2c6e36131d73ccc965ec9b17377dc29f2321b40b |
|---|---|
| Ticket: | 794839ffffffffffffffffffffffffffffffffff
async sockets: readable vs writable fileevents |
| User & Date: | davygrvy on 2004-05-06 01:30:25 |
Changes
- icomment:
Logged In: YES user_id=7549 Using the following test case: proc foo {fd which} { puts "$fd: errstat $which [fconfigure $fd -error]" catch {close $fd} } set port_not_open 65432 set fd [socket -async localhost $port_not_open] fileevent $fd readable [list foo $fd readable] fileevent $fd writable [list foo $fd writable] I found that when I added the ability for an async connection that returned an error to fire both read and write handlers, only the first would be called due to the 'close $fd'. If neither closed, both would be called relentlessly. [committed fix to HEAD] - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"