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:
Gregory Nutt
2018-01-23 11:54:03 -06:00
parent f2017bded8
commit 82cb799bb6
6 changed files with 49 additions and 31 deletions
+5 -1
View File
@@ -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)
{