Overview
| Artifact ID: | 70b36dbbc2a4bb5ad73f692bf8226d63f148d713 |
|---|---|
| Ticket: | 780533ffffffffffffffffffffffffffffffffff
[fcopy] callback sometimes fails to trigger |
| User & Date: | msofer on 2004-04-01 21:22:50 |
Changes
- icomment:
Logged In: YES user_id=148712 Is this a real bug, or mainly EBKAC? If it is a real bug, it needs attention - if it is EBKAC, I need a spanking ... The bug I (think that I) see is: [fcopy] is failing to call its callback after copying the required number of bytes. The test script lacks comments, portability ('puts stderr'), and nicety (writes a tempFile in wd, leaves it there), sorry. What it does is: 1. opens a server socket; on connection 4 bytes are read (number N of following bytes), then N bytes are fcopied to tempFile, calling the doneCopy callback when done. doneCopy writes a log to stderr, end then causes the app to exit. The app exits also after receiving the second message through the pipe (used to signal a failure). 2. opens (via pipe) a second tclsh that connects to the server and sends a binary (length+message). After message end, the client waits for 10 seconds and prints an exit message - if it still alive, which should not happen as the pipe should have been closed before that, when the main process exits. Observed behaviour: fcopy's callback is not called after the 10 seconds, the client prints its exit message. Should have observed: fcopy's callback is called, no client exit message seen. Weirdness: if the client sends an extra byte down the socket, all's well. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"