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)
Sat, Oct 19, 2:38 PM
Unknown Object (File)
Oct 12 2024, 2:22 AM
Unknown Object (File)
Oct 4 2024, 2:19 AM
Unknown Object (File)
Oct 3 2024, 9:11 PM
Unknown Object (File)
Oct 1 2024, 11:44 AM
Unknown Object (File)
Oct 1 2024, 5:57 AM
Unknown Object (File)
Sep 30 2024, 1:04 PM
Unknown Object (File)
Sep 29 2024, 10:55 PM
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