diff --git a/net/net_tcp_proc.c b/net/net_tcp_proc.c index 3de73eaec60..7de18e3b0cf 100644 --- a/net/net_tcp_proc.c +++ b/net/net_tcp_proc.c @@ -308,6 +308,7 @@ inline static int handle_io(struct fd_map* fm, int idx,int event_type) "handle write, err, state: %d, att: %d", con->state, con->msg_attempts); tcpconn_release_error(con, 1,"Write error"); + close(s); /* we always close the socket received for writing */ break; } else if (resp==1) { sh_log(con->hist, TCP_SEND2MAIN,