Overview
| Artifact ID: | 707639c389a2ee760d1e2893d12a96064d66ab55 |
|---|---|
| Ticket: | 943274ffffffffffffffffffffffffffffffffff
Tcl 8.4.5 with Expect 5.39 hangs waiting for data matching p |
| User & Date: | andreas_kupries on 2004-05-05 23:32:00 |
Changes
- icomment:
Logged In: YES user_id=75003 I skipped right over the timer_fev. sometimes I am to near to the code. The timer_fev is set if the fileevent handler the read is in was invoked not by a real fileevent, but by a fake file event generated by a timer, to flush data kept in the buffers ... Interesting, set if and only if there is blockmode proc, i.e. if the generic layer cannot know if the underlying driver will block or not. And 'expect' fits that to a tee. I have to gather more information about timer_fev it seems, when it was introduced, changelog comments from that time etc. In the meantime, testscript. Yes please. Please try to reduce your application to something small (and without large IP of yours) and attach it to this bug report. If I can invoke a script which is selfcontained and reliably hangs itself debugging will be much easier for me. Regarding telling that there is more data on the channel ... Tcl cannot, not directly. For drivers with a blockmodeproc it can tell the driver whether to read blocking or non-blocking, and in the non-blocking case the driver ensure that it stops reading the moment the os tells it that it has no more data right now. Expect is a driver without a blockmodeproc, and so Tcl cannot really tell when there is no more data, and has to be extra careful to call on the OS only if there should be data present. This timer_fev flag I overlooked earlier has exactly this purpose. And maybe there is something wrong in the logic of its handling. I don't know yet, I have to read more changelog. Thanks.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"