@@ -3,45 +3,24 @@
33{-# LANGUAGE MagicHash #-}
44{-# LANGUAGE UnboxedTuples #-} -- for GHC 7.4 or earlier
55
6−-- |
7−--
8−-- Note that this module will not be exported in Warp 3.2.0.
9−-- Please use Network.Wai.Handler.Warp.Internal instead.
10−--
11−-- In order to provide slowloris protection, Warp provides timeout handlers. We
12−-- follow these rules:
13−--
14−-- * A timeout is created when a connection is opened.
15−--
16−-- * When all request headers are read, the timeout is tickled.
17−--
18−-- * Every time at least 2048 bytes of the request body are read, the timeout
19−-- is tickled.
20−--
21−-- * The timeout is paused while executing user code. This will apply to both
22−-- the application itself, and a ResponseSource response. The timeout is
23−-- resumed as soon as we return from user code.
24−--
25−-- * Every time data is successfully sent to the client, the timeout is tickled.
26−
276module Network.Wai.Handler.Warp.Timeout (
28− -- * Types
7+ -- ** Types
298 Manager
309 , TimeoutAction
3110 , Handle
32− -- * Manager
11+ -- ** Manager
3312 , initialize
3413 , stopManager
3514 , withManager
36− -- * Registration
15+ -- ** Registration
3716 , register
3817 , registerKillThread
39− -- * Control
18+ -- ** Control
4019 , tickle
4120 , cancel
4221 , pause
4322 , resume
44− -- * Exceptions
23+ -- ** Exceptions
4524 , TimeoutThread (..)
4625 ) where
4726