]> rtime.felk.cvut.cz Git - frescor/forb.git/commit
Correct handling of closed TCP connections in proto_inet
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 27 May 2009 18:33:14 +0000 (20:33 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 27 May 2009 20:30:48 +0000 (22:30 +0200)
commit077c2b2f53aaa905822f122d48aca8a1c72f2f1d
tree0168ff03c98fa1faa7f752dedd56af7add2bc6d9
parent1a096e992dc737d8886d206faf89cd7099536910
Correct handling of closed TCP connections in proto_inet

In FRSH_FORB this allows restarting resource managers without restart of fcb.
The problem of previous implementation was, that if the socket was closed but
peer structure was not unregistered the disconnected peer structure stored
fd of closed socket and when a new connection was made, the fd was the same
as stored in disconnected peer structure. Therefore the disconnected peer
appeared as alive.
src/proto_inet.c