Ver Fonte

add fflush in httpd

Aleteoryx há 5 dias atrás
pai
commit
0f1eecc032
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      httpd.c

+ 2 - 0
httpd.c

@@ -481,6 +481,8 @@ void httpd_connection(FILE *f)
     else
         req = xs_httpd_request(f, &payload, &p_size);
 
+    fflush(f);
+
     if (req == NULL) {
         /* probably because a timeout */
         fclose(f);