[Top][All Lists]

[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: Gecko/20070515 Firefox/


                 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



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:


  Nachricht geschickt von/durch Savannah

reply via email to

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