mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-12 00:01:58 -04:00
parsers now emitting close, not complete
This commit is contained in:
parent
2557eae5f7
commit
7db7fad7a9
@ -151,7 +151,7 @@ module HTTPX
|
||||
# 1 keep alive request.
|
||||
@max_concurrent_requests = 1
|
||||
end
|
||||
emit(:complete)
|
||||
emit(:close)
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -170,7 +170,7 @@ module HTTPX
|
||||
|
||||
def on_close(*)
|
||||
return unless @connection.state == :closed && @connection.active_stream_count.zero?
|
||||
emit(:complete)
|
||||
emit(:close)
|
||||
end
|
||||
|
||||
def on_frame_sent(frame)
|
||||
|
Loading…
x
Reference in New Issue
Block a user