I'm using Restlet 2.2-M3. I'm getting into cases where the Restlet client is
hanging. It's hanging on the "latch.await()" on line 444 in
ClientConnectionHelper.java:
// Prepare the latch to block the caller thread
CountDownLatch latch = new CountDownLatch(1);
request.getAttributes().put(CONNECTOR_LATCH, latch);
// Add the message to the outbound queue for processing
addOutboundMessage(response);
// Await on the latch
latch.await();
The "addOutboundMessage(response)" code looks like it's trying to wake up a
selector to handle the message, so I suspect that the selector must be null or
empty...but why is that? Is there a way to work around things?
I saw this issue on Stack Overflow:
http://stackoverflow.com/questions/12832381/resourceclient-hanging-on-locksupport-park-on-sunos-when-connecting-to-restlet
Based on that, I added the timeouts as specified here:
https://github.com/restlet/restlet-framework-java/issues/669#issuecomment-9154393
But what's the underlying issue?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3067097