You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix handling of request bodies in HTTP/1 server loop. (#138)
1. Fixes an old regression where request = nil should be conditional upon the request body, but was incorrectly the response body. Looking at the git history, the original behavior was ... unless request.body and was changed in b3cc9ce, seemingly accidentally during a refactor.
I occasionally experience random hangs when running my test suite and believe this might be one cause of them.
2. Changes the handling of unconsumed bodies from request.finish to request.each{}.
finish buffers the request fully in memory as a Buffered, causing needless memory bloat in the ruby process. Using each skips the buffering, but is otherwise behaves the same.
0 commit comments