lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7865] implement non-blocking SEND operation (socket)


From: Simon Goldschmidt
Subject: [lwip-devel] [task #7865] implement non-blocking SEND operation (socket)
Date: Fri, 09 Oct 2009 20:39:57 +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 #5, task #7865 (project lwip):

Being one of the supporters of a 'new' (redesigned) sockets implementation,
I'd implement this only half: return EAGAIN (or wouldblock or whatever) if
tcp_write() returns != ERR_OK but not the part waking up an application task
from select() when memory comes available.

I think that should be good enough: the 'proper' solution would be too big
for lwIP, and anyway, we would have to either try periodically or monitor the
memp pools or the heap to know when memory is available...

If we do it like that, the solution for this is a simple code change in
api_msg.c:do_writemore() (for RAW or UDP, the stack doesn't wait, anyway),
only a flag forwarding for MSG_DONWAIT or O_NONBLOCK from socket to netconn.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7865>

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





reply via email to

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