Explorar o código

add fflush in httpd

Aleteoryx hai 5 días
pai
achega
0f1eecc032
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);