parsers now emitting close, not complete

This commit is contained in:
HoneyryderChuck 2018-03-11 00:41:43 +00:00
parent 2557eae5f7
commit 7db7fad7a9
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ module HTTPX
# 1 keep alive request.
@max_concurrent_requests = 1
end
emit(:complete)
emit(:close)
end
private

View File

@ -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)