From 410fdd587ab49de9c42bdab8eacf5818a3aee866 Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Thu, 3 Feb 2022 08:46:16 +0100 Subject: [PATCH] Added "timeouts" as one type of events users should handle as part of their use of Pipeline. --- Database/MongoDB/Internal/Protocol.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/MongoDB/Internal/Protocol.hs b/Database/MongoDB/Internal/Protocol.hs index e87acd4..a86f4a1 100644 --- a/Database/MongoDB/Internal/Protocol.hs +++ b/Database/MongoDB/Internal/Protocol.hs @@ -196,7 +196,7 @@ pcall p@Pipeline{..} message = do type Pipe = Pipeline -- ^ Thread-safe TCP connection with pipelined requests. In long-running applications the user is expected to use it as a "client": create a `Pipe` --- at startup, use it as long as possible, and close it on shutdown. Bearing in mind that disconnections may be triggered by MongoDB service providers, the user is responsible for re-creating their `Pipe` whenever necessary. +-- at startup, use it as long as possible, watch out for possible timeouts, and close it on shutdown. Bearing in mind that disconnections may be triggered by MongoDB service providers, the user is responsible for re-creating their `Pipe` whenever necessary. newPipe :: ServerData -> Handle -> IO Pipe -- ^ Create pipe over handle