2 uni-directional TCP connection good?

Robert Watson rwatson at FreeBSD.org
Fri Mar 20 06:24:10 PDT 2009


On Fri, 20 Mar 2009, Yoshihiro Ota wrote:

> 1. With TCP connections, only sender side can detect some communication 
> issues passively if happened.  By using two connections, you lost that 
> ability by your self.  I agree on this one.

Could you expand a bit on this point?  While the connection creation process 
(usualy) asymetric, once the connection is built it's essentially the same 
state machine on both sides of the connection, and socket semantics with 
respect to the state machine are effectively identical.  Application on both 
sides should be able to detect disconnect, monitor connection state using 
TCP_INFO, etc.

Robert N M Watson
Computer Laboratory
University of Cambridge


More information about the freebsd-hackers mailing list