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)
Feb 24 2024, 4:17 PM
Unknown Object (File)
Jan 29 2024, 4:39 PM
Unknown Object (File)
Dec 20 2023, 7:15 AM
Unknown Object (File)
Dec 15 2023, 11:02 AM
Unknown Object (File)
Dec 10 2023, 12:31 AM
Unknown Object (File)
Nov 6 2023, 9:38 PM
Unknown Object (File)
Oct 31 2023, 4:09 AM
Unknown Object (File)
Oct 10 2023, 5:53 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