moonbridge

diff moonbridge_http.lua @ 196:281f1ac41fc6

Do not read whole request body unless necessary in HTTP module (extra yield)
author jbe
date Sat Jun 20 00:14:18 2015 +0200 (2015-06-20)
parents ab12ecb399f1
children efd1b4cfd2e9
line diff
     1.1 --- a/moonbridge_http.lua	Sat Jun 20 00:02:11 2015 +0200
     1.2 +++ b/moonbridge_http.lua	Sat Jun 20 00:14:18 2015 +0200
     1.3 @@ -496,6 +496,7 @@
     1.4            if process_body_chunk then
     1.5              process_body_chunk(chunk)
     1.6            end
     1.7 +          coroutine.yield()  -- do not read more than necessary
     1.8          end
     1.9        end
    1.10        -- coroutine for request body processing:

Impressum / About Us