lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20021] conn->sem is only signaled one-way


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #20021] conn->sem is only signaled one-way
Date: Thu, 31 May 2007 16:43:19 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

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

                 Summary: conn->sem is only signaled one-way
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Donnerstag 31.05.2007 um 16:43
                Category: None
                Severity: 5 - Blocker
              Item Group: Crash Error
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In api_msg.c, sent_tcp() signals the conn->sem semaphore every time something
is sent. But the sem is only waited for when ERR_MEM is returned (either if
there is not enough memory or the TCP window is full).
That way, if you only send small data and have enough memory, the semaphore
can be signalled into heaven ;-)

Proposed change: include a state variable like "someone's waiting" and only
signal the semaphore when someone _is_ waiting for more data to show.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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