on master help sign in
Disable PESSIMISTIC_RECV for Windows
9b2f160Michael
warp/Network/Wai/Handler/Warp/Run.hs+2
@@ -30,7 +30,9 @@ import Prelude hiding (catch)
30-- Sock.recv first tries to call recvfrom() optimistically.
30-- Sock.recv first tries to call recvfrom() optimistically.
31-- If EAGAIN returns, it polls incoming data with epoll/kqueue.
31-- If EAGAIN returns, it polls incoming data with epoll/kqueue.
32-- This code first polls incoming data with epoll/kqueue.
32-- This code first polls incoming data with epoll/kqueue.
33+#if !WINDOWS
33#define PESSIMISTIC_RECV 1
34#define PESSIMISTIC_RECV 1
35+#endif
34
36
35#ifdef PESSIMISTIC_RECV
37#ifdef PESSIMISTIC_RECV
36import System.Posix.Types (Fd(..))
38import System.Posix.Types (Fd(..))
warp/warp.cabal+1−1
@@ -1,5 +1,5 @@
1Name: warp
1Name: warp
2−Version: 1.3.3.2
2+Version: 1.3.3.3
3Synopsis: A fast, light-weight web server for WAI applications.
3Synopsis: A fast, light-weight web server for WAI applications.
4License: MIT
4License: MIT
5License-file: LICENSE
5License-file: LICENSE