Skip to content

Commit ae89a1e

Browse files
committed
Better timeout modifier
1 parent 7ffb420 commit ae89a1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Network/WebSockets/Snap.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runWebSocketsSnapWith options ws = do
2727
rq <- Snap.getRequest
2828
Snap.escapeHttp $ \tickle writeEnd ->
2929
let options' = options
30-
{ WS.onPong = tickle (+ 30) >> WS.onPong options
30+
{ WS.onPong = tickle (max 30) >> WS.onPong options
3131
}
3232

3333
in WS.runWebSocketsWith options' (fromSnapRequest rq) ws writeEnd

websockets-snap.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: websockets-snap
2-
Version: 0.6.0.0
2+
Version: 0.6.0.1
33
Synopsis: Snap integration for the websockets library
44
Description: Snap integration for the websockets library
55
License: BSD3

0 commit comments

Comments
 (0)