diff options
author | Jason Carey <jcarey@argv.me> | 2018-03-29 13:57:52 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2018-04-05 16:19:51 -0400 |
commit | 3a8ea2566835098bcfc39a403a39db0dcbf64ba4 (patch) | |
tree | d5277f00e89e387f90d36b209c70b5d018782561 /src/mongo/transport/asio_utils.h | |
parent | 170a620d2987553a218e98de1070813f32e773aa (diff) | |
download | mongo-3a8ea2566835098bcfc39a403a39db0dcbf64ba4.tar.gz |
SERVER-33821 TL changes for NITL
Transport Layer changes for NetworkInterfaceTransportLayer
Diffstat (limited to 'src/mongo/transport/asio_utils.h')
-rw-r--r-- | src/mongo/transport/asio_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/transport/asio_utils.h b/src/mongo/transport/asio_utils.h index 8f29b709fda..be660d8b861 100644 --- a/src/mongo/transport/asio_utils.h +++ b/src/mongo/transport/asio_utils.h @@ -60,6 +60,10 @@ inline Status errorCodeToStatus(const std::error_code& ec) { if (!ec) return Status::OK(); + if (ec == asio::error::operation_aborted) { + return {ErrorCodes::CallbackCanceled, "Callback was canceled"}; + } + #ifdef _WIN32 if (ec == asio::error::timed_out) { #else |