mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
IPv4: Put some TCP close handshake debug spam behind TCP_SOCKET_DEBUG
This commit is contained in:
parent
3891e6d739
commit
70c9a89707
1 changed files with 4 additions and 0 deletions
|
@ -441,7 +441,9 @@ bool TCPSocket::protocol_is_disconnected() const
|
|||
void TCPSocket::shut_down_for_writing()
|
||||
{
|
||||
if (state() == State::Established) {
|
||||
#ifdef TCP_SOCKET_DEBUG
|
||||
dbg() << " Sending FIN/ACK from Established and moving into FinWait1";
|
||||
#endif
|
||||
send_tcp_packet(TCPFlags::FIN | TCPFlags::ACK);
|
||||
set_state(State::FinWait1);
|
||||
} else {
|
||||
|
@ -453,7 +455,9 @@ void TCPSocket::close()
|
|||
{
|
||||
IPv4Socket::close();
|
||||
if (state() == State::CloseWait) {
|
||||
#ifdef TCP_SOCKET_DEBUG
|
||||
dbg() << " Sending FIN from CloseWait and moving into LastAck";
|
||||
#endif
|
||||
send_tcp_packet(TCPFlags::FIN | TCPFlags::ACK);
|
||||
set_state(State::LastAck);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue