From a389d08c26d7fc139130198abe29739dd54c9f3b Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Thu, 12 Apr 2012 12:57:04 +0200 Subject: [PATCH] 376201 - HalfClosed state not handled properly. Addendum to restore previous behavior, where a closed stream was also half closed. --- .../src/main/java/org/eclipse/jetty/spdy/StandardStream.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java index 8b1ae148ded..1de9e1b121d 100644 --- a/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java +++ b/jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/StandardStream.java @@ -94,7 +94,9 @@ public class StandardStream implements IStream public boolean isHalfClosed() { CloseState closeState = this.closeState; - return closeState == CloseState.LOCALLY_CLOSED || closeState == CloseState.REMOTELY_CLOSED; + return closeState == CloseState.LOCALLY_CLOSED || + closeState == CloseState.REMOTELY_CLOSED || + closeState == CloseState.CLOSED; } @Override