diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-08-28 09:41:42 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-08-28 09:41:42 +0200 |
commit | feafa659ac4ac76cd9ac3067ca394a6470b1e59e (patch) | |
tree | ff0cb300de7cccb6ca026708e81e35c285eaa300 /container-core | |
parent | c5adf87ecf4d6de277ad233137beeec318c869c3 (diff) |
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.
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java | 18 |
1 files changed, 4 insertions, 14 deletions
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(); } |