[ wxwindows-Patches-1885472 ] Handle zero-length datagrams in GSocket

SourceForge.net noreply at sourceforge.net
Sat Feb 2 15:10:25 PST 2008


Patches item #1885472, was opened at 2008-02-03 00:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1885472&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build -- unix
Group: bug fix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikkel S (xaignar)
Assigned to: Nobody/Anonymous (nobody)
Summary: Handle zero-length datagrams in GSocket

Initial Comment:
This patch should prevent wxDatagramSockets from being disconected when an empty datagram is received. The problem occurs because an empty datagram results in recv/recvfrom returning 0, and this is currently treated as EOF for both streaming and datagram sockets.

An easy way to verify this problem is to open an wxDatagramSockets socket, and then scan it using "nmap -sU -p <PORT> <HOST>", which will send an empty UDP packet to the socket, triggering its closure.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1885472&group_id=9863




More information about the wx-dev mailing list