Skip to content

Commit 14e7de8

Browse files
committed
CDRIVER-756: Don't overwrite the errno into something we won't be checking for anyway
1 parent ee8c591 commit 14e7de8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/mongoc/mongoc-socket.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,25 +1117,13 @@ mongoc_socket_sendv (mongoc_socket_t *sock, /* IN */
11171117
BSON_ASSERT (iovcnt - cur);
11181118
BSON_ASSERT (iov [cur].iov_len);
11191119
} else if (OPERATION_EXPIRED (expire_at)) {
1120-
#ifdef _WIN32
1121-
errno = WSAETIMEDOUT;
1122-
#else
1123-
errno = ETIMEDOUT;
1124-
#endif
11251120
GOTO(CLEANUP);
11261121
}
11271122

11281123
/*
11291124
* Block on poll() until our desired condition is met.
11301125
*/
11311126
if (!_mongoc_socket_wait (sock->sd, POLLOUT, expire_at)) {
1132-
if (ret == 0){
1133-
#ifdef _WIN32
1134-
errno = WSAETIMEDOUT;
1135-
#else
1136-
errno = ETIMEDOUT;
1137-
#endif
1138-
}
11391127
GOTO(CLEANUP);
11401128
}
11411129
}

0 commit comments

Comments
 (0)