mongoResp: Eagerly await mongo's reponse...

Description Usage Arguments Details

Description

Eagerly await mongo's reponse

Usage

1
mongoResp(conn, timeout=10)

Arguments

connection

an open socket

timeout

how many tries to get a non-null

Details

Polls the socket connection for non-null value. Assume that the first 4 bytes are a int32 describing the message length. Attempt to read the message length.


strongh/mongor documentation built on May 30, 2019, 8:32 p.m.