Bug 243

Summary: PacketSink does not close socket upon StopApplication()
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: applicationsAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   

Description Tom Henderson 2008-06-29 12:35:46 UTC
PacketSink needs something like this in StopApplication():
 {
   if (m_socket) 
     {
+      m_socket->Close ();
       m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
     }
 }


However, this will not change any output because, for TCP, Close() is not supported properly right now, so I don't think this is a P1 bug for 3.1.
Comment 1 Tom Henderson 2008-07-03 00:04:52 UTC
fixed by changeset 3379	a2ef1eb4c16d