3 ms·
Also, TCP is more like 2 uni-directional streams bolted together than a single full-duplex connection, which I've seen trip up lots of systems.
by kevin_nisbet 4y ago
Also, TCP is more like 2 uni-directional streams bolted together than a single full-duplex connection, which I've seen trip up lots of systems.
- GauntletWizard 4y agoThere's probably room for a socket option to automatically close connection on FIN; I'm surprised it isn't there already.
- sleepydog 4y agoYour analogy is better directed towards the bsd sockets API that 99% of programs use, rather than TCP itself. I still feel that the API should lean even further into the "two streams" abstraction, as described here: http://cr.yp.to/tcpip/twofd.html http://cr.yp.to/tcpip/twofd.html
- klabb3 4y agoIt really is logically two streams indeed. In an alternative universe…