mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 20:39:18 +00:00
Merge branch 'master' into jetty-8
This commit is contained in:
commit
31ed425361
@ -2,6 +2,7 @@ package org.eclipse.jetty.server.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.SocketException;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.nio.channels.ClosedChannelException;
|
||||
import java.nio.channels.SelectionKey;
|
||||
@ -230,6 +231,13 @@ public class ConnectHandler extends HandlerWrapper
|
||||
{
|
||||
channel = connectToServer(request,host,port);
|
||||
}
|
||||
catch (SocketException se)
|
||||
{
|
||||
LOG.info("ConnectHandler: " + se.getMessage());
|
||||
response.setStatus(HttpServletResponse.SC_GATEWAY_TIMEOUT);
|
||||
baseRequest.setHandled(true);
|
||||
return;
|
||||
}
|
||||
catch (SocketTimeoutException ste)
|
||||
{
|
||||
LOG.info("ConnectHandler: " + ste.getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user