Skip to content

Commit 410fdd5

Browse files
Added "timeouts" as one type of events users should handle as part of their use of Pipeline.
1 parent 6ad28bc commit 410fdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Database/MongoDB/Internal/Protocol.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pcall p@Pipeline{..} message = do
196196

197197
type Pipe = Pipeline
198198
-- ^ Thread-safe TCP connection with pipelined requests. In long-running applications the user is expected to use it as a "client": create a `Pipe`
199-
-- 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.
199+
-- 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.
200200

201201
newPipe :: ServerData -> Handle -> IO Pipe
202202
-- ^ Create pipe over handle

0 commit comments

Comments
 (0)