Disable PESSIMISTIC_RECV for Windows
commit9b2f160acc0813e8d2896d7bc0738f8bc5b49586
authorMichael <michael@snoyman.com>
dateThu 11 Oct 2012, 18:03 (14 years ago)
parent0783ebe
warp/Network/Wai/Handler/Warp/Run.hs+2
@@ -30,7 +30,9 @@ import Prelude hiding (catch)
3030-- Sock.recv first tries to call recvfrom() optimistically.
3131-- If EAGAIN returns, it polls incoming data with epoll/kqueue.
3232-- This code first polls incoming data with epoll/kqueue.
33+#if !WINDOWS
3334#define PESSIMISTIC_RECV 1
35+#endif
3436
3537#ifdef PESSIMISTIC_RECV
3638import System.Posix.Types (Fd(..))
warp/warp.cabal+1−1
@@ -1,5 +1,5 @@
11Name: warp
2−Version: 1.3.3.2
2+Version: 1.3.3.3
33Synopsis: A fast, light-weight web server for WAI applications.
44License: MIT
55License-file: LICENSE