Skip to content

Commit

Permalink
properly terminate interrupted TCP connection. fixes #8685
Browse files Browse the repository at this point in the history
  • Loading branch information
j-berman authored and selsta committed Jun 9, 2023
1 parent 2f45d5c commit 438554e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contrib/epee/include/net/abstract_tcp_server2.inl
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,8 @@ namespace net_utils
break;
}
}
else if (ec.value())
terminate();
else {
cancel_timer();
on_interrupted();
terminate();
}
};
m_strand.post(
Expand Down

0 comments on commit 438554e

Please sign in to comment.