lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27709] conn->err race condition on netconn_recv() tim


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #27709] conn->err race condition on netconn_recv() timeout
Date: Thu, 15 Oct 2009 16:33:04 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

Follow-up Comment #4, bug #27709 (project lwip):

> I don't think we've really fixed this - just made the race more unlikely.

I'm not sure there still is a race condition: The code now doesn't rely on
conn->err to be something specific, the only place where conn->err is checked
is to not overwrite another error (only write ERR_CLSD if it is ERR_OK
before). The original problem is thus solved.

However, I do agree that changing the API to let netconn_recv() return err_t
would be good. We should then also change the netconn functions to return an
err_t inside struct api_msg and we could eliminate conn->err totally.

I think we should find another way to solve the problems we tried to fix by
ERR_IS_FATAL(conn->err), e.g. test if a connection is opened before sending or
receiving.

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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