Skip to content

Commit

Permalink
handle tcp_closed with no data. fix #117
Browse files Browse the repository at this point in the history
  • Loading branch information
nniclausse committed Sep 7, 2015
1 parent 36f3d5c commit 35b6029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tsung/ts_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ handle_info2({tcp, Socket, _Data}, StateName, State ) ->
_ -> ok
end, Acc end, unused, DictList),
{next_state, StateName, State};
handle_info2({tcp_closed, Socket}, StateName, State ) ->
handle_info2({tcp_closed, Socket, ""}, StateName, State );
handle_info2({tcp_closed, Socket, _Data}, StateName, State ) ->
?LOGF("tcp_closed received in state ~p~n",[StateName],?NOTICE),

Expand Down

0 comments on commit 35b6029

Please sign in to comment.