debug
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:
parent
af0e30d908
commit
28ead0cdbe
|
@ -214,23 +214,28 @@ public class HttpConnection implements Connection
|
||||||
|
|
||||||
if (!_generator.isComplete())
|
if (!_generator.isComplete())
|
||||||
{
|
{
|
||||||
InputStream in = _exchange.getRequestContentSource();
|
if (_exchange!=null)
|
||||||
if (in != null)
|
|
||||||
{
|
{
|
||||||
if (_requestContentChunk == null || _requestContentChunk.length() == 0)
|
InputStream in = _exchange.getRequestContentSource();
|
||||||
|
if (in != null)
|
||||||
{
|
{
|
||||||
_requestContentChunk = _exchange.getRequestContentChunk();
|
if (_requestContentChunk == null || _requestContentChunk.length() == 0)
|
||||||
_destination.getHttpClient().schedule(_timeout);
|
{
|
||||||
|
_requestContentChunk = _exchange.getRequestContentChunk();
|
||||||
|
_destination.getHttpClient().schedule(_timeout);
|
||||||
|
|
||||||
if (_requestContentChunk != null)
|
if (_requestContentChunk != null)
|
||||||
_generator.addContent(_requestContentChunk,false);
|
_generator.addContent(_requestContentChunk,false);
|
||||||
else
|
else
|
||||||
_generator.complete();
|
_generator.complete();
|
||||||
|
|
||||||
flushed = _generator.flushBuffer();
|
flushed = _generator.flushBuffer();
|
||||||
io += flushed;
|
io += flushed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
|
_generator.complete();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_generator.complete();
|
_generator.complete();
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ package org.eclipse.jetty.client;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.SocketTimeoutException;
|
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import org.eclipse.jetty.client.security.SecurityListener;
|
import org.eclipse.jetty.client.security.SecurityListener;
|
||||||
|
@ -823,15 +822,7 @@ public class HttpExchange
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (ex instanceof SocketTimeoutException ||
|
HttpExchange.this.onException(ex);
|
||||||
ex.getCause() instanceof SocketTimeoutException)
|
|
||||||
{
|
|
||||||
Log.debug(ex);
|
|
||||||
setStatus(HttpExchange.STATUS_EXPIRED);
|
|
||||||
HttpExchange.this.onExpire();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
HttpExchange.this.onException(ex);
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue