lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20357] netconn_close hangs if conn->err is ERR_MEM an


From: Jared Grubb
Subject: [lwip-devel] [bug #20357] netconn_close hangs if conn->err is ERR_MEM and state is not LISTEN or CLOSE_WAIT
Date: Thu, 05 Jul 2007 18:40:27 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

URL:
  <http://savannah.nongnu.org/bugs/?20357>

                 Summary: netconn_close hangs if conn->err is ERR_MEM and
state is not LISTEN or CLOSE_WAIT
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jgrubb
            Submitted on: Thursday 07/05/2007 at 18:40
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Example: all netbuf's already allocated, state=ESTABLISHED
------------------
inbuf = netconn_recv(conn); // fails with ERR_MEM
netconn_close(conn); // never returns
-------------------

Reason:
do_close only sets conn->err if the socket is in LISTEN or CLOSE_WAIT states.
Therefore, the ERR_MEM persists and netconn_close goes into infinite loop.




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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