Skip to content

Commit

Permalink
JNI: call select() again when return -1 and errno is EAGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
cconlon committed Jun 27, 2024
1 parent a352475 commit 7e5ace5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/com_wolfssl_WolfSSLSession.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ static int socketSelect(int sockfd, int timeout_ms, int rx)
}

#ifndef USE_WINDOWS_API
} while ((result == -1) && (errno == EINTR));
} while ((result == -1) && ((errno == EINTR) || (errno == EAGAIN)));
#endif

/* Return on error, unless select() was interrupted, try again above */
Expand Down

0 comments on commit 7e5ace5

Please sign in to comment.