lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8737] tcp_timer_needed should use tcpip_timeout


From: Robert Szewczyk
Subject: [lwip-devel] [patch #8737] tcp_timer_needed should use tcpip_timeout
Date: Fri, 11 Sep 2015 17:13:34 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?8737>

                 Summary: tcp_timer_needed should use tcpip_timeout
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: robszewczyk
            Submitted on: Fri 11 Sep 2015 05:13:33 PM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

When tcp_connect is called from a different thread, it is possible that the
tcp timers do not get started properly.  This happens when there are no TCP
timers active and the SYN packet is lost (or not responded to). Previous code
would simply adjust the timer queue, but not fix the LwIP wakeup schedule; in
the absence of active timers and incoming packets, there would be nothing to
wakeup the LwIP thread to adjust the wakeup to reflect the new state of the
timer queue.  This patch replaces the direct call to sys_timeout with a
tcpip_timeout call that wakes up the LwIP thread.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 11 Sep 2015 05:13:33 PM GMT  Name:
0001-tcp_timer_needed-should-use-tcpip_timeout.patch  Size: 1kB   By:
robszewczyk

<http://savannah.nongnu.org/patch/download.php?file_id=34861>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8737>

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




reply via email to

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