From dbadf731d06a79cdae7afd23f4c20fb8fbb9c07e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 8 Dec 2018 11:37:06 +0000 Subject: http_client: do not warn on do_pread overreach Without sendfile, we can hit EOFError on IO#pread if a file we're serving gets truncated mid-response. This was causing test_truncated_sendfile failures; but I didn't notice before because I forgot to set SENDFILE_BROKEN=1 to disable the test. --- lib/yahns/http_client.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb index d55a0db..8744053 100644 --- a/lib/yahns/http_client.rb +++ b/lib/yahns/http_client.rb @@ -332,7 +332,6 @@ class Yahns::HttpClient < Kgio::Socket # :nodoc: io.read(count, buf) end rescue EOFError - warn "BUG: do_pread overreach:\n #{caller.join("\n ")}\n" nil end -- cgit v1.2.3-24-ge0c7