Page MenuHomeFreeBSD

lpd: Add timeout option
ClosedPublic

Authored by des on Feb 20 2026, 4:03 PM.
Tags
None
Referenced Files
F157120217: D55400.id172317.diff
Mon, May 18, 2:18 PM
F157119277: D55400.id172317.diff
Mon, May 18, 2:10 PM
F157117184: D55400.diff
Mon, May 18, 1:47 PM
Unknown Object (File)
Sat, May 16, 11:13 PM
Unknown Object (File)
Sat, May 16, 11:08 PM
Unknown Object (File)
Sat, May 16, 2:20 PM
Unknown Object (File)
Sat, May 16, 1:01 PM
Unknown Object (File)
Wed, May 13, 6:59 PM
Subscribers

Details

Summary

Set a 120-second receive timeout on all client connections, and add a
command-line option to change that value.

MFC after: 3 days

Diff Detail

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

Event Timeline

des requested review of this revision.Feb 20 2026, 4:03 PM
markj added inline comments.
usr.sbin/lpr/lpd/lpd.c
393

Should we bother with a timeout in the domain == AF_UNIX case?

394
This revision is now accepted and ready to land.Feb 21 2026, 2:55 AM
usr.sbin/lpr/lpd/lpd.c
393

Why should we trust local unprivileged users more than we trust root on an authorized client?

This revision was automatically updated to reflect the committed changes.