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)
Tue, Apr 9, 1:26 AM
Unknown Object (File)
Mon, Apr 8, 2:56 AM
Unknown Object (File)
Sun, Apr 7, 7:40 AM
Unknown Object (File)
Mar 30 2024, 12:36 AM
Unknown Object (File)
Dec 20 2023, 4:43 AM
Unknown Object (File)
Dec 12 2023, 12:05 PM
Unknown Object (File)
Nov 25 2023, 5:30 AM
Unknown Object (File)
Nov 23 2023, 10:05 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