# HG changeset patch # User jbe # Date 1495968821 -7200 # Node ID 3a346a82031addab17d0c604759ce5751689ab25 # Parent 446db91762b76c97dab08b4ef070da7de469237d Do not throw error on TCP RST when waiting for HTTP request diff -r 446db91762b7 -r 3a346a82031a moonbridge_http.lua --- a/moonbridge_http.lua Tue Apr 25 19:26:51 2017 +0200 +++ b/moonbridge_http.lua Sun May 28 12:53:41 2017 +0200 @@ -502,7 +502,8 @@ local function read_eof(...) local data, status = socket:read_yield(...) if data == nil then - request_error(true, "400 Bad Request", "Read error") + return nil -- do not throw error on TCP RST + --request_error(true, "400 Bad Request", "Read error") end if status == "eof" then if data == "" then