summaryrefslogtreecommitdiff
path: root/src/mongo/transport/asio_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/asio_utils.cpp')
-rw-r--r--src/mongo/transport/asio_utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/transport/asio_utils.cpp b/src/mongo/transport/asio_utils.cpp
index 8e8368ff586..61d9a56dea2 100644
--- a/src/mongo/transport/asio_utils.cpp
+++ b/src/mongo/transport/asio_utils.cpp
@@ -55,6 +55,8 @@ Status errorCodeToStatus(const std::error_code& ec) {
return {ErrorCodes::HostUnreachable, "Connection reset by peer"};
} else if (ec == asio::error::network_reset) {
return {ErrorCodes::HostUnreachable, "Connection reset by network"};
+ } else if (ec == asio::error::in_progress) {
+ return {ErrorCodes::ConnectionError, "Socket operation in progress"};
}
// If the ec.category() is a mongoErrorCategory() then this error was propogated from