mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user