Bugzilla – Bug 998
Deallocating Ipv4Endpoint sometimes causes TcpSocketImpl's own destructor to be called
Last modified: 2011-12-10 21:49:24 UTC
Created attachment 983 [details] Modification to tcp-socket-impl.cc Slightly modified the order in which things are destroyed/zeroed when TcpSocketImpl is fully closed. This was already a fairly gnarly piece of code with a 7-line comment block attached to it, so I'm a little less sure of this one. Deallocating the Ipv4Endpoint would sometimes result in the TcpSocketImpl's own destructor being called due to Ptr reference counting; changing the order of events _here_ allowed this to happen without the destructor failing an assertion. Attached as tcp-socket-deallocate.diff
need to confirm if this is still valid
Fixed in TcpSocketBase