You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ioannis Canellos (JIRA)" <ji...@apache.org> on 2010/02/22 13:06:40 UTC

[jira] Created: (SMXCOMP-717) Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).

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-2009.02, servicemix-http-2009.01, servicemix-http-2008.01
            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.

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


[jira] Updated: (SMXCOMP-717) Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).

Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Work started: (SMXCOMP-717) Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SMXCOMP-717 started by Freeman Fang.

> 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
>            Assignee: Freeman Fang
>
> 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.


[jira] Resolved: (SMXCOMP-717) Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMXCOMP-717.
----------------------------------

       Resolution: Fixed
    Fix Version/s: servicemix-http-2010.01

patch applied on behalf of Ioannis Canellos with thanks
http://svn.apache.org/viewvc?rev=915241&view=rev

> 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
>            Assignee: Freeman Fang
>             Fix For: servicemix-http-2010.01
>
>
> 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.


[jira] Assigned: (SMXCOMP-717) Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SMXCOMP-717:
------------------------------------

    Assignee: Freeman Fang

> 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
>            Assignee: Freeman Fang
>
> 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.