Relaxed constrain on tls in test.cabal
Relax upper bound for unix-compat from 0.4 -> 0.5
… kill the" This reverts commit bb94339.
This reverts commit 45ebfb3.
This reverts commit 40ddb9e.
SSLContext before we're finished with it. The hypothesis here is that the SSLContext (which has an MVar finalizer attached to it) is getting GCed before all of the uses are finished with it, which is causing our testsuite segfault-on-exit. If this hypothesis is correct, then touching the context on session shutdown should force the context to remain live.
…s for non-linux platforms
Specifically, `bytestring-0.10.0.0` and `template-haskell-18.104.22.168`
From `base-4.6.0` on, `catch` is not exported anymore by `Prelude` and therefore an `import Prelude hiding (catch)` results in a compilation error. This changeset adds `CPP` directives to avoid this compile error while retaining backward compatibility with older `base` versions.
This is done for `base-4.5.0` and later in order to shut up a compiler warning in GHC 7.4 and avoid a compiler error in GHC 7.6, e.g.: Warning: newtype `Fd' is used in an FFI declaration, but its constructor is not in scope. This will become an error in GHC 7.6.1. When checking declaration: foreign import ccall unsafe "static sys/sendfile.h sendfile64" c_sendfile :: Fd -> Fd -> Ptr COff -> CSize -> IO CSsize
This ensures that as far as HTTP headers go, the response generated by Snap.Test.runHandler is as close as possible to what will be sent out over the socket (excepting chunked transfer-encoding). Fixes #145.