Overview
| Artifact ID: | e2aa87d9e76b124bf4c2d89dd722d53d23d2c4c9 |
|---|---|
| Ticket: | 2446662fffffffffffffffffffffffffffffffff
chanIO.test failures on Win32 msys/mingw |
| User & Date: | ferrieux on 2009-01-08 14:42:16 |
Changes
- icomment:
Re blocking close: afraid the analogy is a bit exaggerated because: (1) A child process "naturally" communicates success/failure via the exit status, while the RST on TCP is a much less meaningful indication. Indeed, SO_LINGER is rarely used by servers (like inetd, httpd) to fine-tune connection end (this would imply setting to hardclose at the beginning of processing, and going back to normal close on completion, so that a kill or segfault would automatically send an RST...). So on the client side it would seem hard to depend on it. (2) Perusing the [fconfigure -blocking] bit to decide the behavior just like for pipes (which does make sense ex nihilo) would pose a compatibility issue with sockets (imagine apps talking to rude servers that don't react to a FIN ... they would block forever in [close]) In summary, you should have suggested that idea back 20yrs ago when SO_LINGER still stood a chance to (a) be uniformly implemented by TCP stacks and (b) be frequently used as a diagnosis tool by server writers...
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"