From 7ee2b61a5a25676ad8738b0e350e619aa724d18d Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 24 Aug 2020 08:18:25 -0700 Subject: [PATCH] Peer review feedback to also check EAGAIN and always have supported. --- src/wolfio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wolfio.c b/src/wolfio.c index da5cfda12..170b23eb5 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -1078,12 +1078,10 @@ int wolfIO_HttpProcessResponse(int sfd, const char** appStrList, start[len] = 0; } else { - #ifdef WOLFSSL_NONBLOCK_OCSP result = wolfSSL_LastError(); - if (result == SOCKET_EWOULDBLOCK) { + if (result == SOCKET_EWOULDBLOCK || result == SOCKET_EAGAIN) { return OCSP_WANT_READ; } - #endif WOLFSSL_MSG("wolfIO_HttpProcessResponse recv http from peer failed"); return -1;