* Closed endpoints are now deleted directly, they no longer get into the
2MSL wait. * Accidently left on debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
66cb8f0ede
commit
cd2bea0cd2
@ -55,7 +55,7 @@
|
||||
#define PrintAddress(address) \
|
||||
AddressString(Domain(), address, true).Data()
|
||||
|
||||
#define TRACE_TCP
|
||||
//#define TRACE_TCP
|
||||
//#define PROBE_TCP
|
||||
|
||||
#ifdef TRACE_TCP
|
||||
@ -1621,6 +1621,12 @@ TCPEndpoint::SegmentReceived(tcp_segment_header& segment, net_buffer* buffer)
|
||||
else if (segmentAction & ACKNOWLEDGE)
|
||||
DelayedAcknowledge();
|
||||
|
||||
if (fState == CLOSED && (fFlags & FLAG_CLOSED) != 0) {
|
||||
locker.Unlock();
|
||||
gSocketModule->delete_socket(socket);
|
||||
// this will also delete us
|
||||
}
|
||||
|
||||
return segmentAction;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user