Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: non-blocking UDP read on OS X 10.8.2 12C60 #4796
On OSX, making a UDP socket with ListenUDP, and then using Read/ReadFrom/ReadFromUDP will not block. It blocks fine on linux. This example program demonstrates the problem by spinning endlessly on OSX, while it blocks and waits for a UDP packet on linux.
This sounds like it might be a kernel bug. My 10.8.2 machine works fine, but I have build 12C2034 not 12C60. (See http://en.wikipedia.org/wiki/OS_X_Mountain_Lion#Release_history). Perhaps the upcoming 10.8.3 will fix this. Russ
This issue was closed.