Skip to content

Commit 84777e1

Browse files
committed
Use #close_write to force output shutdown.
1 parent f210507 commit 84777e1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lib/async/http/protocol/http2/connection.rb

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,12 @@ def start_connection
7070
end
7171

7272
def close(error = nil)
73-
if @reader
74-
@reader = nil
75-
76-
# unless @reader.current?
77-
# @reader.stop
78-
# @reader.wait
79-
# end
80-
81-
Async::Task.current.sleep(0.1)
73+
if @stream.connected?
74+
@stream.close_write
8275
end
8376

77+
@reader = nil
78+
8479
super
8580
end
8681

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy