network programming - I don't want to close socket in my multi-client for single server program -
i'm building c socket program on centos 6.2 below.
the server listening connection request clients.
once connection established, clients starts send log data single server.
the problem clients sends log data same port makes close_wait
issue when client closes connection.
surfing web, read should close socket kill 'close_wait' connection means server can't accept log data client socket more.
is there way kill specific session on port? if it's not possible, should create multi server listener?
the problem clients sends log data same port makes close_wait issue when client closes connection.
no doesn't. close_wait
means (i) peer has closed end of connection, , (ii) local system waiting local application same. has nothing 'to same port', how tcp services work.
i read should close socket kill 'close_wait' connection
correct.
which means server can't accept log data client socket more.
no doesn't. happen if closed listening socket. need close accepted socket, 1 got eos from.
is there way kill specific session on port?
close socket.
if it's not possible, should create multi server listener?
surely have done that?
you don't have choice this. if receive end-of-stream when reading socket, can't read more it. ever.
Comments
Post a Comment