Issue #9: Connection dies after a few seconds

Issue 1024: TCP connections die after few seconds of inactivity
This commit is contained in:
mlf 2012-10-23 22:27:53 +02:00 committed by Cristian Maglie
parent 336e578d02
commit 825d68a9c7
4 changed files with 15191 additions and 15002 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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",