Page MenuHomeFreeBSD

tcp: purge the input queue from tcp_discardcb()
ClosedPublic

Authored by glebius on Apr 19 2023, 5:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 31, 8:07 AM
Unknown Object (File)
Mon, Mar 31, 8:06 AM
Unknown Object (File)
Fri, Mar 28, 6:46 AM
Unknown Object (File)
Feb 28 2025, 10:56 AM
Unknown Object (File)
Feb 10 2025, 2:53 AM
Unknown Object (File)
Jan 28 2025, 3:55 AM
Unknown Object (File)
Jan 14 2025, 1:53 AM
Unknown Object (File)
Jan 13 2025, 12:42 AM
Subscribers

Details

Summary

The purge was intentionally removed in a540cdca3183. My assumption
was that the stacks that use the input queue always call the
tcp_handle_orphaned_packets() in there tfb_tcp_fb_fini method.
However, rack will skip doing that if t_fb_ptr is NULL and there are
scenarios when it is NULL, e.g. close(2) on a socket (but some
special close(2)). Instead of working out all possible scenarios
let's put this safebelt back.

Diff Detail

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