Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-717

Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • servicemix-http-2008.01, servicemix-http-2009.01, servicemix-http-2009.02
    • servicemix-http-2010.01
    • servicemix-http
    • None
    • Patch Available

    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 {

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            iocanel Ioannis Canellos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: