Removed delay after receiving in recvfrom(). This was killing network performance

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5107 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-09-07 16:51:53 +00:00
parent b53b1fa813
commit 704679d7b1
28 changed files with 131 additions and 49 deletions
+17 -1
View File
@@ -296,7 +296,23 @@
/* The size of the TCP read buffer size */
#ifndef CONFIG_NET_TCP_READAHEAD_BUFSIZE
# define CONFIG_NET_TCP_READAHEAD_BUFSIZE UIP_TCP_MSS
# if CONFIG_NET_NTCP_READAHEAD_BUFFERS < 1
# define CONFIG_NET_TCP_READAHEAD_BUFSIZE 0
# else
# define CONFIG_NET_TCP_READAHEAD_BUFSIZE UIP_TCP_MSS
# endif
#endif
/* Delay after receive to catch a following packet. No delay should be
* required if TCP/IP read-ahead buffering is enabled.
*/
#ifndef CONFIG_NET_TCP_RECVDELAY
# if CONFIG_NET_NTCP_READAHEAD_BUFFERS > 0
# define CONFIG_NET_TCP_RECVDELAY 0
# else
# define CONFIG_NET_TCP_RECVDELAY 5
# endif
#endif
/****************************************************************************