Browse Source

add fflush in httpd

Aleteoryx 5 ngày trước cách đây
mục cha
commit
0f1eecc032
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      httpd.c

+ 2 - 0
httpd.c

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