Skip to content

Commit 2929c2d

Browse files
bjorihanumantmk
authored andcommitted
Include the timeout value here like we do elsewhere
Closes #176
1 parent 59548f9 commit 2929c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongoc/mongoc-buffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ _mongoc_buffer_append_from_stream (mongoc_buffer_t *buffer,
177177
bson_set_error (error,
178178
MONGOC_ERROR_STREAM,
179179
MONGOC_ERROR_STREAM_SOCKET,
180-
"Failed to read %"PRIu64" bytes from socket.",
181-
(uint64_t)size);
180+
"Failed to read %"PRIu64" bytes from socket within %d milliseconds.",
181+
(uint64_t)size, (int)timeout_msec);
182182
RETURN (false);
183183
}
184184

0 commit comments

Comments
 (0)