Skip to content

Commit

Permalink
Kill connection when remote end is disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
brainwater committed Nov 17, 2012
1 parent f56b259 commit fdee659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proto/proto_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ callback_pipestatus(void * cookie)
if ((C->stat_f == -1) || (C->stat_r == -1))
return (dropconn(C));

/* If both directions have been shut down, kill the connection. */
if ((C->stat_f == 0) && (C->stat_r == 0))
/* If the remote end has been disconnected, then kill the connection . */
if (C->stat_r == 0)
return (dropconn(C));

/* Nothing to do. */
Expand Down

0 comments on commit fdee659

Please sign in to comment.