Skip to content

Commit 9e945fc

Browse files
committed
Better determination if the connection is closed.
1 parent a53da1a commit 9e945fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/protocol/http2/connection.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ def maximum_concurrent_streams
9999
# The highest stream_id that has been successfully accepted by this connection.
100100
attr :remote_stream_id
101101

102+
# Whether the connection is effectively or actually closed.
102103
def closed?
103-
@state == :closed
104+
@state == :closed || @framer.nil?
104105
end
105106

106107
def delete(id)

0 commit comments

Comments
 (0)