I am using Jetty Client 8.1.7. I have a case where the hardware load balancer 
closes the connection in a way that my listener gets to onConnectiotnFailed 
with IOException. I then try to re-send the same as part as an internal retry 
mechanism.

Before I resend (using the same exchange object), I call reset() on the 
exchange.

For some reason I get the following error:

java.lang.IllegalStateException: WAITING => START
                at 
org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:370)
                at 
org.eclipse.jetty.client.HttpExchange.reset(HttpExchange.java:185)



1.       Any ideas why the jetty client thread is still in waiting state?

2.       And ideas why it can't change from waiting to started?

3.       I think maybe calling cancel() instead of reset(). Would that do the 
trick?

Thanks,

Yair
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to