sslh-select sets O_NONBLOCK *before* calling connect, which prevents hanging on an unresposive server (fix #258)

This commit is contained in:
yrutschle committed 2021-05-28 13:38:45 +02:00
1 parent 300e1916c3
commit 1ad450a444
4 files changed
+45 -37

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ void start_shoveler(int in_socket)
}
/* Connect the target socket */
out_socket = connect_addr(&cnx, in_socket);
out_socket = connect_addr(&cnx, in_socket, BLOCKING);
CHECK_RES_DIE(out_socket, "connect");
set_capabilities(0);