mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Merge branch 'fix/sendfile-error-handling' of git://github.com/soundrop/cowboy
This commit is contained in:
commit
2a98ae05e3
1 changed files with 2 additions and 1 deletions
|
@ -324,7 +324,8 @@ file_contents(Req, #state{filepath=Filepath,
|
|||
%% if the connection is closed while sending the file.
|
||||
case Transport:sendfile(Socket, Filepath) of
|
||||
{ok, _} -> ok;
|
||||
{error, closed} -> ok
|
||||
{error, closed} -> ok;
|
||||
{error, etimedout} -> ok
|
||||
end
|
||||
end,
|
||||
{{stream, Filesize, Writefile}, Req, State}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue