RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx] (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Mon Jan 23 13:30:32 PST 2012
- Previous message: RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
- Next message: RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 23/01/2012 17:09, Michael McMahon wrote:
Can I get the following change reviewed please?
http://cr.openjdk.java.net/~michaelm/7131399/webrev.1/ The problem is that poll(2) doesn't seem to work in a specific edge case tested by JCK, namely, when a zero length UDP message is sent on a DatagramSocket. The problem is only detected on timed reads, ie. normal blocking reads work fine. The fix is to make the NETTimeout() function use select() instead of poll(). Thanks, Michael. The first argument to select is s+1, shouldn't is be 1?
-alan
- Previous message: RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
- Next message: RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]