summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-04-14 16:28:11 +0200
committerJon Marius Venstad <venstad@gmail.com>2021-04-14 16:28:11 +0200
commitf62d7b095c353508103f0f038e1f957435d54a38 (patch)
tree11ae6f185ae78179011bec39b6d5fdfe889c1dc6 /container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java
parentfd9b726786f4c00b276f2d84fd0a3593a0c406eb (diff)
Move MaxPendingContentChannelStream to container-core and use it thorugh max pending on HttpResponse
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java')
-rw-r--r--container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java b/container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java
index a6042c541c0..5df40a90fe6 100644
--- a/container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java
+++ b/container-core/src/main/java/com/yahoo/container/jdisc/HttpResponse.java
@@ -40,6 +40,9 @@ public abstract class HttpResponse {
/** Marshals this response to the network layer. The caller is responsible for flushing and closing outputStream. */
public abstract void render(OutputStream outputStream) throws IOException;
+ /** The amount of content bytes this response may have in-flight (if positive) before response rendering blocks. */
+ public long maxPendingBytes() { return -1; }
+
/**
* Returns the numeric HTTP status code, e.g. 200, 404 and so on.
*