From 43a06e8e37d02a7fe7a47f8c4cab37fe5b19406f Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Fri, 15 Nov 2002 09:40:05 +0000 Subject: [PATCH] The code that increased the retransmission time was commented out for some reason. This has been fixed. Also removed some old, out-commented, code. --- src/core/tcp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index a802d21f..48204e5c 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -482,9 +482,9 @@ tcp_slowtmr(void) /* Double retransmission time-out unless we are trying to connect to somebody (i.e., we are in SYN_SENT). */ - /* if(pcb->state != SYN_SENT) { + if(pcb->state != SYN_SENT) { pcb->rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[pcb->nrtx]; - }*/ + } tcp_rexmit(pcb); @@ -544,9 +544,6 @@ tcp_slowtmr(void) } TCP_EVENT_ERR(pcb->errf, pcb->callback_arg, ERR_ABRT); - /* if(pcb->errf != NULL) { - pcb->errf(pcb->callback_arg, ERR_ABRT); - }*/ pcb2 = pcb->next; memp_free(MEMP_TCP_PCB, pcb); @@ -558,7 +555,6 @@ tcp_slowtmr(void) if(pcb->polltmr >= pcb->pollinterval) { pcb->polltmr = 0; TCP_EVENT_POLL(pcb, err); - /* pcb->poll(pcb->callback_arg, pcb);*/ if(err == ERR_OK) { tcp_output(pcb); }