2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

4519. [port] win32: handle ERROR_MORE_DATA. [RT #43534]

This commit is contained in:
Mark Andrews
2016-11-29 11:28:26 +11:00
parent c8b6065dde
commit a611e44f9a
2 changed files with 7 additions and 3 deletions

View File

@@ -2515,14 +2515,16 @@ SocketIoThread(LPVOID ThreadContext) {
request = lpo->request_type;
errstatus = 0;
if (!bSuccess) {
if (!bSuccess)
errstatus = GetLastError();
else
errstatus = 0;
if (!bSuccess && errstatus != ERROR_MORE_DATA) {
isc_result_t isc_result;
/*
* Did the I/O operation complete?
*/
errstatus = GetLastError();
isc_result = isc__errno2result(errstatus);
LOCK(&sock->lock);