Bug 243 - PacketSink does not close socket upon StopApplication()
PacketSink does not close socket upon StopApplication()
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: applications
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-29 12:35 EDT by Tom Henderson
Modified: 2008-07-03 00:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2008-06-29 12:35:46 EDT
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 EDT
fixed by changeset 3379	a2ef1eb4c16d