Skip to content

Commit 81c8736

Browse files
committed
fix: force TCP binding to send the data immediately
1 parent b82738b commit 81c8736

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/tcpip/wasm/tcp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ uint16_t send_tcp_chunk(struct tcp_pcb *conn, uint8_t *chunk, uint16_t length) {
3131
return 0;
3232
}
3333

34+
// Force sending chunks immediately
35+
err_t out_result = tcp_output(conn);
36+
if (out_result != ERR_OK) {
37+
return 0;
38+
}
39+
3440
return bytes_to_send;
3541
}
3642

0 commit comments

Comments
 (0)