Bug 1957

Summary: UdpSocketImpl is stuck after a Close()
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: internetAssignee: George Riley <riley>
Status: RESOLVED FIXED    
Severity: minor CC: ns-bugs, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch

Description Tommaso Pecorella 2014-07-29 17:04:35 UTC
After a Close() a UdpSOcket has both m_shutdownRecv and m_shutdownSend set to true.

Re-opening the socket (e.g., by using Bind() or Connect()) will not clear them, so the socket is stuck in non-sending, non-receiving state.

The obvious solution is to clear them in
int UdpSocketImpl::FinishBind (void)
Comment 1 Tommaso Pecorella 2014-07-30 14:09:41 UTC
Created attachment 1859 [details]
patch
Comment 2 Tom Henderson 2014-10-02 13:44:10 UTC
Suggest to commit if no further comments.
Comment 3 Tommaso Pecorella 2014-10-12 10:04:38 UTC
changeset 11011:68da08e92ffa