discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] UDP Source Error (on windows)


From: mleech
Subject: Re: [Discuss-gnuradio] UDP Source Error (on windows)
Date: Thu, 19 May 2016 11:32:57 -0400
User-agent: Roundcube Webmail/1.1.5

I'll comment that the Windows socket implementation isn't in compliance with the spirit of the robustness principle.  But, whatevs.  Easy enough to just remove that option for the UDP case.

 

 

 

On 2016-05-19 08:59, Andy Walls wrote:


OK, I was able to reproduce the issue, and it appears to me to a core
GNURadio issue not specifically related to the installer


udp_source_impl.cc is setting the SO_LINGER option on the UDP socket,
which at least on Windows, causes a WSAENOPROTOOPT exception, because
linger doesn't really mean anything for a UDP socket.  


Perhaps the Linux folks can help here, but I'm guessing that this
option must be simply ignored on Linux so there is no error for most
users.  Looking at the man pages doesn't specify any particular
behavior required.


Geof


SO_LINGER gets processed by the Linux kernel generically here:

http://lxr.free-electrons.com/source/net/core/sock.c#L644

with no check against socket type.

The UDP socket handling doesn't use the resulting SOCK_LINGER flag
setting.
http://lxr.free-electrons.com/source/net/ipv4/udp.c
http://lxr.free-electrons.com/source/net/ipv6/udp.c

Only TCP and the Bluetooth SCO protocol in the Linux kernel care about
SO_LINGER.

Regards,
Andy


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]