on master help sign in
stop using non blocking for files.

Sockets should be non blocking. But files should be blocking.

commit394024ddf158371f2735fa8fe85342ee076298c6 authorKazu Yamamoto <kazu@iij.ad.jp> dateWed 2 Mar 2016, 16:10 (11 years ago) parent47cd1b5
1 file changed+1−1
warp/Network/Wai/Handler/Warp/FdCache.hs+1−1
warp/Network/Wai/Handler/Warp/FdCache.hs+1−1
@@ -72,7 +72,7 @@ inactive (MutableStatus ref) = writeIORef ref Inactive
7272data FdEntry = FdEntry !FilePath !Fd !MutableStatus
7373
7474openFile :: FilePath -> IO Fd
75−openFile path = openFd path ReadOnly Nothing defaultFileFlags{nonBlock=True}
75+openFile path = openFd path ReadOnly Nothing defaultFileFlags{nonBlock=False}
7676
7777closeFile :: Fd -> IO ()
7878closeFile = closeFd