checkout for WSAEINVAL

This commit is contained in:
NickPak 2021-11-05 11:14:25 +08:00
parent 5da36fafcf
commit a3c5ce6735

View File

@ -291,6 +291,9 @@ oatpp::async::CoroutineStarterForResult<const provider::ResourceHandle<data::str
return ioWait(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
} else if(error == WSAEINTR || error == WSAEALREADY) {
return ioRepeat(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
} else if(error == WSAEINVAL) {
return AbstractCoroutine::error(new async::Error(
"[oatpp::network::tcp::client::ConnectionProvider::doConnect()]: Error. The parameter m_clientHandle is a listening socket."));
}
#else