Overview
| Artifact ID: | d7cb7c48ef1bd26e3f9b63272e569177ab0864ae |
|---|---|
| Ticket: | 3325339fffffffffffffffffffffffffffffffff
socket-14.2 fails |
| User & Date: | ferrieux on 2011-06-28 15:24:12 |
Changes
- icomment:
Good -- that fixes it ! Please add a comment, because the whole sequence of causality is utterly cryptic to the unaccustomed eye. For example: (near the getsockopt cacheing) /* here we cache the SO_ERROR because it is read destructively */ (near the "if (status != 0)") /* when getsockopt(SO_ERROR) has returned (and cleared) a nonzero error, it also clears the writable state of the socket in the kernel, preventing a subsequent select() from seeing it again. So we post the fileevent at the Tcl level, so that the notifier will dequeue it before calling select(). Note the condition is necessary and sufficient: when getsockopt(SO_ERROR) reports a zero, no side-effect occurs. */ Reinhard, by the way, do you have proof of that latest assertion holds ? Or dies it just Works On Your Machines ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"