Corrected a bug in the buffering of TCP data
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1289 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
0bd7074a2d
commit
c467815ba2
|
@ -572,4 +572,8 @@
|
|||
to refill the input buffer. The old behavior (read full blocks) might be useful in other
|
||||
contexts, so it is still available within the driver as a configuration option.
|
||||
* Implement poll() and select() support for TCP/IP sockets
|
||||
* Fixed an important bug in the TCP/IP buffering logic. When TCP/IP read-ahead is enabled
|
||||
and not recv() is in-place when a TCP/IP packet is received, the packet is placed into
|
||||
a read-ahead buffer. However, the old contents of the read-ahead buffer were not being
|
||||
cleared and old data would contaminate the newly received buffer.
|
||||
|
||||
|
|
|
@ -1208,6 +1208,10 @@ nuttx-0.3.19 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
|||
to refill the input buffer. The old behavior (read full blocks) might be useful in other
|
||||
contexts, so it is still available within the driver as a configuration option.
|
||||
* Implement poll() and select() support for TCP/IP sockets
|
||||
* Fixed an important bug in the TCP/IP buffering logic. When TCP/IP read-ahead is enabled
|
||||
and not recv() is in-place when a TCP/IP packet is received, the packet is placed into
|
||||
a read-ahead buffer. However, the old contents of the read-ahead buffer were not being
|
||||
cleared and old data would contaminate the newly received buffer.
|
||||
|
||||
pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
|
|
@ -172,6 +172,7 @@ uip_dataevent(struct uip_driver_s *dev, struct uip_conn *conn, uint16 flags)
|
|||
|
||||
if (readahead2)
|
||||
{
|
||||
readahead2->rh_nbytes = 0;
|
||||
(void)uip_readahead(readahead2, buf, buflen);
|
||||
|
||||
/* Save the readahead buffer in the connection structure where
|
||||
|
|
Loading…
Reference in New Issue