# HG changeset patch # User jbe # Date 1434752058 -7200 # Node ID 281f1ac41fc68d7c4d6f518cc7d845e13757ce84 # Parent 05fd82e3cfb757411b8e0cda07be01bcd985ee5f Do not read whole request body unless necessary in HTTP module (extra yield) diff -r 05fd82e3cfb7 -r 281f1ac41fc6 moonbridge_http.lua --- a/moonbridge_http.lua Sat Jun 20 00:02:11 2015 +0200 +++ b/moonbridge_http.lua Sat Jun 20 00:14:18 2015 +0200 @@ -496,6 +496,7 @@ if process_body_chunk then process_body_chunk(chunk) end + coroutine.yield() -- do not read more than necessary end end -- coroutine for request body processing: