Page MenuHomeFreeBSD

lpd: Add timeout option
AcceptedPublic

Authored by des on Fri, Feb 20, 4:03 PM.

Details

Reviewers
markj
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70820
Build 67703: arc lint + arc unit

Event Timeline

des requested review of this revision.Fri, Feb 20, 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.Sat, Feb 21, 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?