You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2026/10/09 09:14:05 UTC
[PR] net/tcp: reuse closing connections also with CONFIG_NET_SOLINGER. [nuttx]
raiden00pl opened a new pull request, #20552:
URL: https://github.com/apache/nuttx/pull/20552
## Summary
net/tcp: reuse closing connections also with CONFIG_NET_SOLINGER.
When the connection pool is empty, tcp_alloc() frees the oldest
closing or TIME_WAIT connection, but only without
CONFIG_NET_SOLINGER. The guard protected a close() that blocked
waiting for the close callback. Since 0636c17 ("net/tcp: wave
hands on background") close() returns at once also with SO_LINGER
(it only sets the linger timeout), and tcp_free() cancels the pending
close work and the timer.
With CONFIG_NET_SOLINGER, a node that closes its connections first
ran out of TCP connections once CONFIG_NET_TCP_PREALLOC_CONNS of them
were in TIME_WAIT: socket() failed with ENOMEM until TIME_WAIT
expired.
## Impact
bug fix
## Testing
detected by automate tests from https://github.com/railab/nuttx-testlab
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] net/tcp: reuse closing connections also with CONFIG_NET_SOLINGER. [nuttx]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20552:
URL: https://github.com/apache/nuttx/pull/20552#issuecomment-6080228445
<!-- membrowse-pr-comment -->
## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
*No memory changes detected for:*
- [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
- [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=8a3155ecdb26a11f62b9b57418b6757456e6d138&base=9eb725fe9b9b717bb3ff10184f4c998001e6b449)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] net/tcp: reuse closing connections also with CONFIG_NET_SOLINGER. [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #20552:
URL: https://github.com/apache/nuttx/pull/20552
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org