Skip to content

Commit 3a42c2b

Browse files
committed
chore: apply the fix to solve the tcp delay issue
1 parent eca4f22 commit 3a42c2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/tcpip/wasm/tcp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ uint16_t send_tcp_chunk(struct tcp_pcb *conn, uint8_t *chunk, uint16_t length) {
3232
}
3333

3434
// Force sending chunks immediately
35-
// err_t out_result = tcp_output(conn);
36-
// if (out_result != ERR_OK) {
37-
// return 0;
38-
// }
35+
err_t out_result = tcp_output(conn);
36+
if (out_result != ERR_OK) {
37+
return 0;
38+
}
3939

4040
return bytes_to_send;
4141
}

0 commit comments

Comments
 (0)