瀏覽代碼

add fflush in httpd

Aleteoryx 5 天之前
父節點
當前提交
0f1eecc032
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);