Overview
| Artifact ID: | 44e6ec0a560a8fd1233afbdad1435a41cae46979 |
|---|---|
| Ticket: | 413100ffffffffffffffffffffffffffffffffff
fileevent problem |
| User & Date: | andreas_kupries on 2001-08-07 07:55:02 |
Changes
- icomment:
Logged In: YES user_id=75003 I see a couple of problems in the attached scripts: proc serverOpen {channel addr Port} { fileevent $channel readable "NewThread $channel $addr" puts $channel "Server OK" flush $channel } Why is 'NewThread' attached to a 'readable event' ? A simple [after idle] would be sufficient to move the transfer out of the sockey-handler. But more important is the fact that a thread is started, some event handlers are setup and then the event loop is _not_ entered ! The last command in the script should be a [vwait Stop] or similar and not the [proc]. As is the thread will setup the eventhandlers first and then delete itself, never having the opportunity to fire the events. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"