on master help sign in
adding comment.
commit1f20f764d7a6c628a99ec2281fe705062eccd144 authorKazu Yamamoto <kazu@iij.ad.jp> dateThu 16 Jan 2020, 14:49 (7 years ago) parentc121b70
1 file changed+3
warp/Network/Wai/Handler/Warp/Recv.hs+3
warp/Network/Wai/Handler/Warp/Recv.hs+3
@@ -96,6 +96,9 @@ spell init0 siz0 recv recvBuf
9696 siz' = siz - len
9797 loop bss' siz'
9898
99+-- The timeout manager may close the socket.
100+-- In that case, an error of "Bad file descriptor" occurs.
101+-- We ignores it because we expect TimeoutThread.
99102receive :: Socket -> BufferPool -> Recv
100103receive sock pool = E.handle handler $ withBufferPool pool $ \ (ptr, size) -> do
101104#if MIN_VERSION_network(3,1,0)