Skip to content
Snippets Groups Projects
Commit ce8c91b9 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Check for writability on non-blocking connect(), not read

parent e2094fb9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1586 passed
......@@ -506,7 +506,7 @@ int conn_socket_connect(struct bbslist *bbs)
case EWOULDBLOCK:
#endif
for(;sock!=INVALID_SOCKET;) {
if (socket_readable(sock, 1000)) {
if (socket_writable(sock, 1000)) {
if (socket_recvdone(sock, 0)) {
closesocket(sock);
sock=INVALID_SOCKET;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment