lib/async/http/protocol/http1/server.rb in async-http-0.41.2 vs lib/async/http/protocol/http1/server.rb in async-http-0.42.0
- old
+ new
@@ -53,10 +53,10 @@
# Server loop.
def each(task: Task.current)
while request = next_request
response = yield(request, self)
- return if @stream.closed?
+ return if @stream.nil? or @stream.closed?
if response
# Try to avoid holding on to request, to minimse GC overhead:
head = request.head?