git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1544 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-04-21 12:48:13 +00:00
parent af0e30d908
commit 28ead0cdbe
2 changed files with 18 additions and 22 deletions

View File

@ -213,6 +213,8 @@ public class HttpConnection implements Connection
io += flushed;
if (!_generator.isComplete())
{
if (_exchange!=null)
{
InputStream in = _exchange.getRequestContentSource();
if (in != null)
@ -234,6 +236,9 @@ public class HttpConnection implements Connection
else
_generator.complete();
}
else
_generator.complete();
}
}
if (_generator.isComplete() && !_requestComplete)

View File

@ -15,7 +15,6 @@ package org.eclipse.jetty.client;
import java.io.IOException;
import java.io.InputStream;
import java.net.SocketTimeoutException;
import java.util.concurrent.atomic.AtomicInteger;
import org.eclipse.jetty.client.security.SecurityListener;
@ -823,14 +822,6 @@ public class HttpExchange
{
try
{
if (ex instanceof SocketTimeoutException ||
ex.getCause() instanceof SocketTimeoutException)
{
Log.debug(ex);
setStatus(HttpExchange.STATUS_EXPIRED);
HttpExchange.this.onExpire();
}
else
HttpExchange.this.onException(ex);
}
finally