Overview
| Artifact ID: | 4636e53bbc482763b856a2e147339805297c5428 |
|---|---|
| Ticket: | 1323992fffffffffffffffffffffffffffffffff
socket.test failures |
| User & Date: | vasiljevic on 2005-10-11 23:56:37 |
Changes
- icomment:
Logged In: YES user_id=95086 Confirmed on Linux. Indeed, I do have yet to understand why. The same (tests) passed well on Mac OSX. The part in question is in tclIO.c: /* * Must set the interest mask now to 0, otherwise infinite loops * will occur if Tcl_DoOneEvent is called before the channel is * finally deleted in FlushChannel. This can happen if the channel * has a background flush active. * Also, delete all registered file handlers for this channel * (and for the current thread). This prevents executing of pending * file-events still sitting in the event queue of the current thread. * We deliberately do not call UpdateInterest() because this could * re-schedule new events if the channel still needs to be flushed. */ statePtr->interestMask = 0; (chanPtr->typePtr->watchProc)(chanPtr->instanceData, 0); Effectively this disables handling of events in the event queue for the current thread which are still pending when the channel is getting spliced out of the thread for later transfer to some other interp/thread. If this is not done, the test will pass but your app will core. To check, just comment-out the above call to watchProc and try again. I guess I will have to see what this test is actually trying to test. - login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"