mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Issue #9: Connection dies after a few seconds
Issue 1024: TCP connections die after few seconds of inactivity
This commit is contained in:
parent
336e578d02
commit
825d68a9c7
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -334,7 +334,8 @@ void ack_recved(void* pcb, int len) {
|
||||
|
||||
static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) {
|
||||
struct ttcp* _ttcp = arg;
|
||||
++tcp_poll_retries;
|
||||
if ((_ttcp) && (_ttcp->left>0))
|
||||
++tcp_poll_retries;
|
||||
|
||||
if (tcp_poll_retries > 4) {
|
||||
WARN("ARD TCP [%p] arg=%p retries=%d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user