necouchman commented on code in PR #609:
URL: https://github.com/apache/guacamole-server/pull/609#discussion_r2440314492


##########
src/libguac/tcp.c:
##########
@@ -108,12 +111,46 @@ int guac_tcp_connect(const char* hostname, const char* 
port, const int timeout)
                 FD_SET(fd, &fdset);
                 
                 retval = select(fd + 1, NULL, &fdset, NULL, &tv);
+
+                if (retval > 0) {
+                    int so_error = 0;
+                    socklen_t so_error_len = sizeof(so_error);
+                    retval = getsockopt(fd, SOL_SOCKET, SO_ERROR, &so_error, 
&so_error_len);
+
+                    // Error occurs retrieving the socket status, so we set it
+                    // and move on.

Review Comment:
   Should be fixed!



-- 
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]

Reply via email to