Page MenuHomeFreeBSD

tcp: avoid call to soisconnected() on transition to ESTABLISHED
ClosedPublic

Authored by glebius on Sep 7 2022, 10:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 15, 9:45 AM
Unknown Object (File)
Mar 10 2025, 4:05 AM
Unknown Object (File)
Mar 8 2025, 5:59 PM
Unknown Object (File)
Mar 6 2025, 6:44 PM
Unknown Object (File)
Feb 23 2025, 7:28 PM
Unknown Object (File)
Feb 21 2025, 6:10 AM
Unknown Object (File)
Feb 16 2025, 8:49 PM
Unknown Object (File)
Jan 27 2025, 1:18 PM
Subscribers

Details

Summary

This call existed since pre-FreeBSD times, and it is hard to understand
why it was there in the first place. After 6f3caa6d815 it definitely
became necessary always and commit message from f1ee30ccd60 confirms that.
Now that 6f3caa6d815 is effectively backed out by 07285bb4c22, the call
appears to be useful only for sockets that landed on the imcomplete queue,
e.g. sockets that have accept_filter(9) enabled on them.

Provide a new TCP flag to mark connections that are known to be on the
incomplete queue, and call soisconnected() only for those connections.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable