packages feed

engine-io 1.0.1 → 1.0.2

raw patch · 3 files changed

+11/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Changelog.md view
@@ -1,3 +1,9 @@+## 1.0.2++* The `ping` thread spawned by `websockets` is now disabled, as it has been+  observed that these pings are using invalid sockets. Specifically, see+  https://github.com/lpsmith/postgresql-simple/issues/117.+ ## 1.0.1  * Purposefully double-encode websocket traffic. Unfortunately this is necessary
engine-io.cabal view
@@ -1,5 +1,5 @@ name: engine-io-version: 1.0.1+version: 1.0.2 synopsis: A Haskell implementation of Engine.IO homepage: http://github.com/ocharles/engine.io license: BSD3
src/Network/EngineIO.hs view
@@ -82,6 +82,7 @@ import qualified Data.Text.Encoding as Text import qualified Data.Vector as V import qualified Network.WebSockets as WebSockets+import qualified Network.WebSockets.Connection as WebSockets import qualified System.Random.MWC as Random  --------------------------------------------------------------------------------@@ -516,7 +517,9 @@   where    go pending = do-    conn <- WebSockets.acceptRequest pending+    conn <- WebSockets.acceptRequest $+      -- We do our ping/pong, so disable `websockets` doing this.+      pending { WebSockets.pendingOnAccept = (const $ return ()) }      mWsTransport <- runMaybeT $ do       Packet Ping (TextPacket "probe") <- lift (receivePacket conn)