• Post Reply Bookmark Topic Watch Topic
  • New Topic

NIO - select does not return on Windows

 
Sameer Amte
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The select method of the Selector class is always returning zero on Windows. As per the documentation it should block until any of the registered events occur. The same code works fine on Solaris. The select method always returns zero on Windows XP.
The code is listed below

Any ideas???
I'm using JDK 1.4.2_04 in Windows XP.

Thanks
Sameer
 
Sameer Amte
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done some investigation and found that some people have raised related bugs with Sun, but none of them say clearly if it has been fixed either in 1.4.2_08 or in 5.0. Does anyone know if it has been fixed or are there any possible workarounds?

Thanks
Sameer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!