3 ms·
Puzzler #3 does not have much with using a half-closed socket - you still have a socket that selects as writable, but is not connected to anything. For some re
by arielb1 10y ago
Puzzler #3 does not have much with using a half-closed socket - you still have a socket that selects as writable, but is not connected to anything.
For some reason I remember that when a process crashes the OS's TCP stack sends an RST to the opposing side, rather than a FIN, preventing puzzler #3.
- jtakkala 10y agoWhen a process exits abnormally or not and if there's unread data in the receive buffer then the kernel will send a RST, otherwise it would send a FIN.