moonbridge
changeset 263:3a346a82031a
Do not throw error on TCP RST when waiting for HTTP request
author | jbe |
---|---|
date | Sun May 28 12:53:41 2017 +0200 (2017-05-28) |
parents | 446db91762b7 |
children | 30a04a6a45db |
files | moonbridge_http.lua |
line diff
1.1 --- a/moonbridge_http.lua Tue Apr 25 19:26:51 2017 +0200 1.2 +++ b/moonbridge_http.lua Sun May 28 12:53:41 2017 +0200 1.3 @@ -502,7 +502,8 @@ 1.4 local function read_eof(...) 1.5 local data, status = socket:read_yield(...) 1.6 if data == nil then 1.7 - request_error(true, "400 Bad Request", "Read error") 1.8 + return nil -- do not throw error on TCP RST 1.9 + --request_error(true, "400 Bad Request", "Read error") 1.10 end 1.11 if status == "eof" then 1.12 if data == "" then