Skip to content

Commit

Permalink
eof? can and does block, so let's avoid it.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 22, 2024
1 parent 656d247 commit 79290a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protocol/http1/body/remainder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(stream)
end

def empty?
@stream.eof? or @stream.closed?
@stream.closed?
end

def close(error = nil)
Expand Down

0 comments on commit 79290a4

Please sign in to comment.