net/tcp/tcp_recvwindow.c: In order to receive data we must not only have IOBs available, but we must also have at least one IOB chain qentry available. Otherwise, we will advertise that we an buffer a lot of data when, in fact, we cannot. This is an expermental fix to a performance problem noted by Masayuki Ishikawa.

This commit is contained in:
Gregory Nutt
2018-09-22 09:33:29 -06:00
parent 510b0f7e07
commit dec7ecbd56
3 changed files with 22 additions and 17 deletions
+2 -2
View File
@@ -198,14 +198,14 @@ FAR struct iob_s *iob_tryalloc(bool throttled);
int iob_navail(bool throttled);
/****************************************************************************
* Name: iob_quentry_navail
* Name: iob_qentry_navail
*
* Description:
* Return the number of available IOB chains.
*
****************************************************************************/
int iob_quentry_navail(void);
int iob_qentry_navail(void);
/****************************************************************************
* Name: iob_free