[ 
https://issues.apache.org/activemq/browse/SMXCOMP-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ioannis Canellos updated SMXCOMP-717:
-------------------------------------

    Description: 
HttpProviderEndpoint does not handle Jetty exchange (read timeout). If the 
remote host does not respond to an Http Request in 5 minutes (default 
expiration timeout on Jetty) Jetty propagates an error which is not handled by 
the Http Provider.

Below is the patch:


Index: HttpProviderEndpoint.java
===================================================================
--- HttpProviderEndpoint.java   (revision 910598)
+++ HttpProviderEndpoint.java   (working copy)
@@ -363,6 +363,10 @@
         protected void onException(Throwable throwable) {
             handleException(this, jbiExchange, throwable);
         }
+
+        protected void onExpire() {
+            handleException(this, jbiExchange, new Exception("Http request 
expired."));
+        }
     }
 
     protected class SSLManagedHttpClient extends HttpClient {


  was:HttpProviderEndpoint does not handle Jetty exchange (read timeout). If 
the remote host does not respond to an Http Request in 5 minutes (default 
expiration timeout on Jetty) Jetty propagates an error which is not handled by 
the Http Provider.


> Http Provider Endpoint does not handle Jetty exchange expiration (Read 
> timeout).
> --------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-717
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-717
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-http
>    Affects Versions: servicemix-http-2008.01, servicemix-http-2009.01, 
> servicemix-http-2009.02
>            Reporter: Ioannis Canellos
>
> HttpProviderEndpoint does not handle Jetty exchange (read timeout). If the 
> remote host does not respond to an Http Request in 5 minutes (default 
> expiration timeout on Jetty) Jetty propagates an error which is not handled 
> by the Http Provider.
> Below is the patch:
> Index: HttpProviderEndpoint.java
> ===================================================================
> --- HttpProviderEndpoint.java (revision 910598)
> +++ HttpProviderEndpoint.java (working copy)
> @@ -363,6 +363,10 @@
>          protected void onException(Throwable throwable) {
>              handleException(this, jbiExchange, throwable);
>          }
> +
> +        protected void onExpire() {
> +            handleException(this, jbiExchange, new Exception("Http request 
> expired."));
> +        }
>      }
>  
>      protected class SSLManagedHttpClient extends HttpClient {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to