diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-04 15:38:46 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-04 15:38:46 +0200 |
commit | e34fecf62cf353fa5b0ee86fbdf900b10e103e1b (patch) | |
tree | d0727a8a735f1846278f3737ffbc7e28760865c2 /container-core | |
parent | 95961f1823499edd9f07930332380a2b9c4b1e13 (diff) |
- Avoid a Q in the document v1 handler. Rely only on mbus Q.
- This avoid filling a potentially large Q, and allows for more direct and better feedback to client.
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/jdisc/http/HttpRequest.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/container-core/src/main/java/com/yahoo/jdisc/http/HttpRequest.java b/container-core/src/main/java/com/yahoo/jdisc/http/HttpRequest.java index 9f2eef0b2e7..4f1a0bf0d03 100644 --- a/container-core/src/main/java/com/yahoo/jdisc/http/HttpRequest.java +++ b/container-core/src/main/java/com/yahoo/jdisc/http/HttpRequest.java @@ -89,11 +89,7 @@ public class HttpRequest extends Request { this.version = version; this.remoteAddress = remoteAddress; this.parameters.putAll(getUriQueryParameters(uri)); - if (connectedAtMillis != null) { - this.connectedAt = connectedAtMillis; - } else { - this.connectedAt = creationTime(TimeUnit.MILLISECONDS); - } + this.connectedAt = (connectedAtMillis != null) ? connectedAtMillis : creationTime(TimeUnit.MILLISECONDS); } catch (Throwable e) { release(); throw e; |