lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5919] Create compile switch to remove select code


From: Frédéric Bernon
Subject: [lwip-devel] [patch #5919] Create compile switch to remove select code
Date: Tue, 22 May 2007 21:36:09 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Follow-up Comment #11, patch #5919 (project lwip):

I think to extend LWIP_SO_RCVTIMEO to TCP connections. It will be the same
code, or something near...

But, I don't like this part of code in netconn_recv:

    /* If we are closed, we indicate that we no longer wish to receive
       data by setting conn->recvmbox to SYS_MBOX_NULL. */
    if (p == NULL) {
      memp_free(MEMP_NETBUF, buf);
      sys_mbox_free(conn->recvmbox);
      conn->recvmbox = SYS_MBOX_NULL;
      return NULL;
    }

I think it's not very thread-safe...


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5919>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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