more useful tcp debug logs

This commit is contained in:
cozis
2023-11-03 02:09:54 +01:00
parent 6c17f55c51
commit cb5161a1c6
5 changed files with 130 additions and 53 deletions
+3 -1
View File
@@ -1280,8 +1280,10 @@ static void when_data_is_ready_to_be_read(context_t *ctx, conn_t *conn)
downloaded = b->used - before;
}
#ifdef DEBUG
fprintf(stderr, "XHTTP :: Downloaded %d bytes\n", downloaded);
#endif
int served_during_this_while_loop = 0;
while(1)