mirror of
https://github.com/oatpp/oatpp.git
synced 2025-01-18 16:43:57 +08:00
Fix async client doesn't work
This commit is contained in:
parent
d3a2df72d8
commit
5da36fafcf
@ -289,7 +289,7 @@ oatpp::async::CoroutineStarterForResult<const provider::ResourceHandle<data::str
|
||||
}
|
||||
if(error == WSAEWOULDBLOCK || error == WSAEINPROGRESS) {
|
||||
return ioWait(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
|
||||
} else if(error == WSAEINTR) {
|
||||
} else if(error == WSAEINTR || error == WSAEALREADY) {
|
||||
return ioRepeat(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
|
||||
}
|
||||
|
||||
@ -303,7 +303,7 @@ oatpp::async::CoroutineStarterForResult<const provider::ResourceHandle<data::str
|
||||
}
|
||||
if(errno == EALREADY || errno == EINPROGRESS) {
|
||||
return ioWait(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
|
||||
} else if(errno == EINTR) {
|
||||
} else if(errno == EINTR || errno == EALREADY) {
|
||||
return ioRepeat(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user