Skip to content

Commit 1c6f8bb

Browse files
committed
tcp: Set closed state on reset
1 parent fb63f38 commit 1c6f8bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/net/tcp/connection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ void Connection::segment_arrived(Packet_ptr incoming) {
362362
prev_state_->to_string().c_str(), state_->to_string().c_str());
363363
writeq_reset();
364364
signal_close();
365+
set_state(Closed::instance());
365366
break;
366367
};
367368
case State::CLOSE: {

0 commit comments

Comments
 (0)