-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Code in TCPConnection.cc:144
void TCPConnection::clean_shutdown() {
if (_receiver.stream_out().input_ended()) {
if (!_sender.stream_in().eof())
_linger_after_streams_finish = false;
else if (_sender.bytes_in_flight() == 0) {
if (!_linger_after_streams_finish || time_since_last_segment_received() >= 10 * _cfg.rt_timeout) {
_active = false;
}
}
}
}
Q:_linger_after_streams_finish marks that the Tcp connection has entered the TIME-WAIT state and requires waiting for a certain amount of time to close. The conditions here don't seem quite right?
if (!_linger_after_streams_finish || time_since_last_segment_received() >= 10 *_cfg.rt_timeout) {
_active = false;`
}
Metadata
Metadata
Assignees
Labels
No labels