lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #16830] err_tcp() posts to connection mailbox when no


From: anonymous
Subject: [lwip-devel] [bug #16830] err_tcp() posts to connection mailbox when no pend on the mailbox is active
Date: Mon, 12 Jun 2006 12:33:28 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16830>

                 Summary: err_tcp() posts to connection mailbox when no pend
on the mailbox is active
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: None
            Submitted on: Monday 06/12/2006 at 12:33 UTC
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

When a TCP error occurs and err_tcp() is called, the function posts a null
message to the connection's mailbox.  Since the mailbox is used for
synchronization of connection messages to the TCP thread, posting to it is
only valid when a connection function is pending on the result.  It appears
that this only occurs when the connection is attempting to connect via a call
to netconn_connect(). In all other instances, the connection's mailbox will
receive a message from the TCP thread.

Posting an extra message in err_tcp() causes the next netconn_xxx() API call
to immediately proceed when it performs its sys_mbox_fetch(). This results in
a it prematurely proceeding and freeing the message object it submitted.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Monday 06/12/2006 at 12:33 UTC  Name: err_tcp_patch.txt  Size: 1.24KB  
By: None
Simple-minded patch
<http://savannah.nongnu.org/bugs/download.php?file_id=10178>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16830>

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





reply via email to

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