diff options
author | jfrijters <jfrijters> | 2007-08-23 13:28:00 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2007-08-23 13:28:00 +0400 |
commit | 3a0429a1984f35029bc8c619b51856ec2a33f80e (patch) | |
tree | 1d193838a090c1a873b9aff4089af70e324f41d1 /openjdk/sun/nio/ch | |
parent | 52ca831faa72a761633c2396e805d6eb60c3612e (diff) |
Fix to make "infinite" blocking select block for Integer.MAX_VALUE instead of returning right away.
Diffstat (limited to 'openjdk/sun/nio/ch')
-rw-r--r-- | openjdk/sun/nio/ch/DotNetSelectorImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openjdk/sun/nio/ch/DotNetSelectorImpl.java b/openjdk/sun/nio/ch/DotNetSelectorImpl.java index ab6c1bb9..47ae5d3d 100644 --- a/openjdk/sun/nio/ch/DotNetSelectorImpl.java +++ b/openjdk/sun/nio/ch/DotNetSelectorImpl.java @@ -129,7 +129,8 @@ final class DotNetSelectorImpl extends SelectorImpl try { if (false) throw new SocketException(); - Socket.Select(read, write, error, microSeconds); + // FXBUG docs say that -1 is infinite timeout, but that doesn't appear to work + Socket.Select(read, write, error, timeout < 0 ? Integer.MAX_VALUE : microSeconds); } catch (SocketException _) { |