lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #20779] Keep-Alive and SYNs


From: Kieran Mansley
Subject: [lwip-devel] [bug #20779] Keep-Alive and SYNs
Date: Wed, 25 Mar 2009 14:03:52 +0000
User-agent: Opera/9.21 (X11; Linux i686; U; en)

Update of bug #20779 (project lwip):

            lwIP version:                    None => 1.3.0                  

    _______________________________________________________

Follow-up Comment #13:

How's this for a patch to solve this problem:

Index: tcp_in.c
===================================================================
RCS file: /sources/lwip/lwip/src/core/tcp_in.c,v
retrieving revision 1.102
diff -u -r1.102 tcp_in.c
--- tcp_in.c    19 Dec 2008 18:08:30 -0000      1.102
+++ tcp_in.c    25 Mar 2009 13:46:59 -0000
@@ -531,6 +535,12 @@
     }
   }
 
+  if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state !=
SYN_RCVD)) { 
+    /* Cope with new connection attempt after remote end crashed */
+    tcp_ack_now(pcb);
+    return ERR_OK;
+  }
+  
   /* Update the PCB (in)activity timer. */
   pcb->tmr = tcp_ticks;
   pcb->keep_cnt_sent = 0;

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20779>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]