Join GitHub today
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