lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #29617] sometime cause stall on delete listening conne


From: Sergey Safronov
Subject: [lwip-devel] [bug #29617] sometime cause stall on delete listening connection
Date: Tue, 20 Apr 2010 10:35:41 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

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

                 Summary: sometime cause stall on delete listening connection
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: sergeysafronov
            Submitted on: Втр 20 Апр 2010 10:35:40
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

The function 'netconn_drain()' called form 'netconn_delete()' some time use
calling 'netconn_delete()' again. It cause stalling on wait for complete
message processing. Nested messages does not work.
In my case I resolve this trouble by the folowing way:

File 'api_msg.c' function 'netconn_drain()':
-      netconn_delete((struct netconn *)mem);
+       struct api_msg_msg msg;
+       struct netconn *conn=(struct netconn *)mem;
+               if (conn != NULL) 
+               {
+                  msg.conn = conn;
+                  do_delconn(&msg);
+                  netconn_free(conn);
+               }
 
Best regards/
=Sergey




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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