Selector.select() won't work on MacOS X (JVM 1.6.0_05)



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.
.



Relevant Pages

  • Re: Selector.select() wont work on MacOS X (JVM 1.6.0_05)
    ... I'm using a DatagramChannel for server queries (i.e. client sends ... After sending a request, I wait for the response with select. ... Selector s = Selector.open; ...
    (comp.lang.java.programmer)
  • Re: Selector.select() wont work on MacOS X (JVM 1.6.0_05)
    ... I'm using a DatagramChannel for server queries (i.e. client sends ... After sending a request, I wait for the response with select. ... Selector selector = Selector.open; ...
    (comp.lang.java.programmer)
  • Re: DatagramSocket "misses" data on MacOS X (JVM 1.6.0_05)
    ... I'm using a DatagramChannel for server queries (i.e. client sends ... After sending a request, I wait for the response with select. ... out and the response is received successfully, but the Selector won't ...
    (comp.lang.java.programmer)
  • Re: W2K3 IIS 6.0 ASP.NET Requests Per Second Limits?
    ... allow the page to tell ASP.Net "don't send a response yet until I tell ... this request is "leaked" and will never ... It is when the callback executes with both the async function call ... The thread executing code literally calls into Function1, execute code, ...
    (microsoft.public.inetserver.iis)
  • Re: W2K3 IIS 6.0 ASP.NET Requests Per Second Limits?
    ... >> The way I understand async programming is if u need to do other ... >> request to webservice nothing more can be done until the result ... > The thread executing code literally calls into Function1, ... > the act of sending back the response using data that has been ...
    (microsoft.public.inetserver.iis)