mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
net/udp: Fix memory leak with UDP + write buffer is closed. Also update TODO and comments and refresh a configuration.
This commit is contained in:
@@ -111,7 +111,11 @@ static uint16_t udp_poll_eventhandler(FAR struct net_driver_s *dev,
|
||||
eventset |= (POLLIN & info->fds->events);
|
||||
}
|
||||
|
||||
/* poll is a sign that we are free to send data. */
|
||||
/* A poll is a sign that we are free to send data.
|
||||
* REVISIT: This is bogus: If CONFIG_UDP_WRITE_BUFFERS=y then
|
||||
* we never have to wait to send; otherwise, we always have to
|
||||
* wait to send. Receiving a poll is irrelevant.
|
||||
*/
|
||||
|
||||
if ((flags & UDP_POLL) != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user