Selector.select() won't work on MacOS X (JVM 1.6.0_05)
- From: Sebastian Staudt <koraktor@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 09:01:16 -0700 (PDT)
Hello.
I have a problem with a Selector.select() call.
I'm using a DatagramChannel for server queries (i.e. client sends
request, server sends response).
After sending a request, I wait for the response with select(). The
DatagramChannel is registered with OP_READ.
Everything works fine on Linux and Windows, but on MacOS X select()
always returns 0. select() always times out or blocks infinetly
(depending on timeout argument). Wireshark shows that the request goes
out and the response is received successfully, but the Selector won't
notice.
Thanks for your help.
.
- Follow-Ups:
- Re: Selector.select() won't work on MacOS X (JVM 1.6.0_05)
- From: Owen Jacobson
- Re: Selector.select() won't work on MacOS X (JVM 1.6.0_05)
- Prev by Date: Re: Why is this code not cleaning up int arrays? or How to detect an image is a solid color?
- Next by Date: Re: ThreadPoolExecutor backport
- Previous by thread: Finding simple Java class for implementation of text recognition
- Next by thread: Re: Selector.select() won't work on MacOS X (JVM 1.6.0_05)
- Index(es):
Relevant Pages
|