280707 client.HttpConnection does not catch and handle non-IOExceptions
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@421 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
2cb525bbf2
commit
d825ba729b
|
@ -12,6 +12,7 @@ jetty-7.0.0.M3-SNAPSHOT
|
|||
+ 279725 Support 100 and 102 expectations
|
||||
+ Refactored AbstractBuffers to HttpBuffers for performance
|
||||
+ Numerous cleanups from static code analysis
|
||||
+ 280707 client.HttpConnection does not catch and handle non-IOExceptions
|
||||
|
||||
jetty-7.0.0.M2 18 May 2009
|
||||
+ JETTY-937 Work around Sun JVM bugs
|
||||
|
|
|
@ -285,8 +285,11 @@ public class HttpConnection implements Connection
|
|||
return;
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
catch (Throwable e)
|
||||
{
|
||||
if (e instanceof ThreadDeath)
|
||||
throw (ThreadDeath)e;
|
||||
|
||||
synchronized (this)
|
||||
{
|
||||
if (_exchange != null)
|
||||
|
@ -295,9 +298,18 @@ public class HttpConnection implements Connection
|
|||
_exchange.setStatus(HttpExchange.STATUS_EXCEPTED);
|
||||
}
|
||||
}
|
||||
failed = true;
|
||||
Log.warn("IOE on "+_exchange);
|
||||
throw e;
|
||||
failed = true;
|
||||
if (e instanceof IOException)
|
||||
throw (IOException)e;
|
||||
|
||||
if (e instanceof Error)
|
||||
throw (Error)e;
|
||||
|
||||
if (e instanceof RuntimeException)
|
||||
throw (RuntimeException)e;
|
||||
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue