From feafa659ac4ac76cd9ac3067ca394a6470b1e59e Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Fri, 28 Aug 2020 09:41:42 +0200 Subject: Time out connections on the IOThread level Time out connections on the IOThread level instead of leaving this to Apache. Keep old connections alive for a while after timeout and keep polling them such that, if the old connection hits a different real behind a VIP than the new connection we'll still get the replies. --- .../java/com/yahoo/container/jdisc/HttpRequest.java | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'container-core') diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java b/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java index e02ae152b3f..edd24fed515 100644 --- a/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java +++ b/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java @@ -517,11 +517,9 @@ public class HttpRequest { } /** - * Access an HTTP header in the request. Multi-value headers are not - * supported. + * Access an HTTP header in the request. Multi-value headers are not supported. * - * @param name - * the name of an HTTP header + * @param name the name of an HTTP header * @return the first pertinent value */ public String getHeader(String name) { @@ -530,20 +528,12 @@ public class HttpRequest { return parentRequest.headers().get(name).get(0); } - /** - * Get the host segment of the URI of this request. - * - * @return the host name from the URI - */ + /** Get the host segment of the URI of this request. */ public String getHost() { return getUri().getHost(); } - /** - * The port of the URI of this request. - * - * @return the port number of the URI - */ + /** The port of the URI of this request. */ public int getPort() { return getUri().getPort(); } -- cgit v1.2.3