bbennett-ks commented on code in PR #643:
URL: https://github.com/apache/guacamole-server/pull/643#discussion_r2981254689
##########
src/libguac/socket-wsa.c:
##########
@@ -134,7 +136,10 @@ static ssize_t guac_socket_wsa_read_handler(guac_socket*
socket,
guac_socket_wsa_data* data = (guac_socket_wsa_data*) socket->data;
/* Read from socket */
- int retval = recv(data->sock, buf, count, 0);
+ int retval;
+ do {
+ retval = recv(data->sock, buf, count, 0);
+ } while (retval < 0 && WSAGetLastError() == WSAEINTR);
Review Comment:
Update to use `GUAC_RETRY_UNTIL()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]