Skip to content

Commit f8207fc

Browse files
committed
CDRIVER-756: Lets not overwrite the error code blindly after successful write
1 parent bb5008e commit f8207fc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/mongoc/mongoc-stream-tls.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,6 @@ _mongoc_stream_tls_write (mongoc_stream_tls_t *tls,
510510
if ((expire - now) < 0) {
511511
if (ret < buf_len) {
512512
mongoc_counter_streams_timeout_inc();
513-
#ifdef _WIN32
514-
errno = WSAETIMEDOUT;
515-
#else
516-
errno = ETIMEDOUT;
517-
#endif
518513
}
519514

520515
tls->timeout_msec = 0;

0 commit comments

Comments
 (0)