Page MenuHomeFreeBSD

Fix getsockopt() timeout.
ClosedPublic

Authored by davide on Jul 17 2014, 11:16 PM.
Tags
None
Referenced Files
F151527231: D433.diff
Thu, Apr 9, 12:57 AM
F151501030: D433.id.diff
Wed, Apr 8, 8:50 PM
Unknown Object (File)
Sun, Apr 5, 3:27 PM
Unknown Object (File)
Sun, Apr 5, 8:31 AM
Unknown Object (File)
Thu, Mar 26, 5:20 PM
Unknown Object (File)
Mon, Mar 23, 12:01 AM
Unknown Object (File)
Mar 1 2026, 10:38 PM
Unknown Object (File)
Dec 23 2025, 8:39 PM
Subscribers
None

Details

Reviewers
davide
jhb
adrian

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

davide retitled this revision from to Fix getsockopt() timeout..
davide updated this object.
davide edited the test plan for this revision. (Show Details)
sys/kern/uipc_socket.c
2550

This is to restore the behavior of r255030? This does do that, but it's not quite obvious. You could also do something like:

if (tv.tv_sec > INT32_MAX)
    val = SBT_MAX;
else
    val = tvtosbt(tv);

I think that might be clearer (and more closely match the prior behavior)

This revision is now accepted and ready to land.Aug 20 2014, 3:37 PM