Browse code

WIP: Don't wait for JOIN reply in client

Robert Cranston authored on 11/06/2023 16:19:57
Showing 1 changed files

... ...
@@ -574,8 +574,8 @@ void run_client(int sockfd) {
574 574
         inputbuf[inputbuflen++] = '\0';
575 575
         if (-1 == send(sockfd, inputbuf, inputbuflen, 0))
576 576
             report_fatal(errno, "Failed to send %s", action.name);
577
-        if (-1 == recv(sockfd, sockbuf, BUFLEN_MAX, MSG_PEEK))
578
-            report_fatal(errno, "Failed to receive %s", action.name);
577
+        // if (-1 == recv(sockfd, sockbuf, BUFLEN_MAX, MSG_PEEK))
578
+        //     report_fatal(errno, "Failed to receive %s", action.name);
579 579
     }
580 580
 
581 581
     // Setup terminal.