[Ikvm-commit] ikvm/openjdk/sun/nio/ch DotNetSelectorImpl.java, 1.2, 1.3
Brought to you by:
jfrijters
From: Jeroen F. <jfr...@us...> - 2007-08-23 09:27:59
|
Update of /cvsroot/ikvm/ikvm/openjdk/sun/nio/ch In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv12771 Modified Files: DotNetSelectorImpl.java Log Message: Fix to make "infinite" blocking select block for Integer.MAX_VALUE instead of returning right away. Index: DotNetSelectorImpl.java =================================================================== RCS file: /cvsroot/ikvm/ikvm/openjdk/sun/nio/ch/DotNetSelectorImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DotNetSelectorImpl.java 19 Jul 2007 08:47:42 -0000 1.2 --- DotNetSelectorImpl.java 23 Aug 2007 09:28:00 -0000 1.3 *************** *** 130,134 **** { if (false) throw new SocketException(); ! Socket.Select(read, write, error, microSeconds); } catch (SocketException _) --- 130,135 ---- { if (false) throw new SocketException(); ! // 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 _) |