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

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5107 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-09-07 16:51:53 +00:00
parent 931d7909f5
commit 5b268e4dab
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
/****************************************************************************