Page MenuHomeFreeBSD

tcp: use SB_AUTOSIZE flag to tell if socket buffer was set
AcceptedPublic

Authored by glebius on Mon, Sep 28, 7:09 PM.

Details

Reviewers
gallatin
tuexen
Group Reviewers
transport
Summary

The check against V_tcp_sendspace is not a correct one, as a buffer may
grow larger than the initial value. The conjunction was always false up
until 587c6c121504, and only after it the bug surfaced.

If we already grow our buffer past the value stored in the hostcache,
prefer our value.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77422
Build 74305: arc lint + arc unit