Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] I want to impement retry request if it is failed.

thanks for your reply.

I have a question about the answer.

You want to retry the request when the continuation has timed out or when the proxy request fails or both?
If the continuation times out, you should simply be able to suspend it again and reissue the proxy request (and ignore any results from the first).
>> if I suspend it again, then the status of continuation is redipacthed. so I could retry and see that the request is delivered to the other server and
the business process is well executed. But, the problem is that the client got not success response, second one  but the error response, first one, 

my question is,, how can i ignore any results from the first?


If my source, java file that jetty's ProxyServlet extends, I will attach my file.
thanks.





On Sun, Apr 7, 2013 at 7:45 AM, Greg Wilkins <gregw@xxxxxxxxxxx> wrote:
Sorry not really following you on this?

You want to retry the request when the continuation has timed out or when the proxy request fails or both?
If the continuation times out, you should simply be able to suspend it again and reissue the proxy request (and ignore any results from the first).

If this is urgent, then you can contact me privately if you are interested in the consulting services of Intalio.com.  Helping clients extend Jetty is what we do to support the project!



On 4 April 2013 16:17, Uk Jo <verystrongjoe@xxxxxxxxx> wrote:

Using Jetty ProxyServlet, we made proxy server. but I have to implement failover. if one request is failed, I want to retry reqeust to another server.. but I'm stuck on changing status of continuation to 'idle' or 'dispatched'.

so, I will retry reqeust in the case when timeout is occured or when the connection is failed.

I'm urgent about this. please help me.. thanks in advance.....


_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev



_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev




--
Success is a long continuous journey..
                                     - From Arnold

Back to the top