You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2010/02/23 09:46:17 UTC
svn commit: r915241 -
/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpProviderEndpoint.java
Author: ffang
Date: Tue Feb 23 08:46:17 2010
New Revision: 915241
URL: http://svn.apache.org/viewvc?rev=915241&view=rev
Log:
[SMXCOMP-717]Http Provider Endpoint does not handle Jetty exchange expiration (Read timeout).
Modified:
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpProviderEndpoint.java
Modified: servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpProviderEndpoint.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpProviderEndpoint.java?rev=915241&r1=915240&r2=915241&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpProviderEndpoint.java (original)
+++ servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpProviderEndpoint.java Tue Feb 23 08:46:17 2010
@@ -363,6 +363,11 @@
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 {