lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20288] event_callback is called from multiple threads


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #20288] event_callback is called from multiple threads without locking
Date: Thu, 28 Jun 2007 10:52:48 +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/?20288>

                 Summary: event_callback is called from multiple threads
without locking
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Donnerstag 28.06.2007 um 10:52
                Category: sockets
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

conn->callback is called from api_msg.c in the core-receive-callbacks
(recv_raw/recv_udp/recv_tcp) but also from netconn_recv, when data was
received by the application. This is definitively not thread-safe.

I think this only leads to problems when using non-blocking sockets or
select, so this bug is a bit related to patch #5919 (Create compile switch to
remove select code) [which is closed for now since it's not that important].




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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