HomeFreeBSD

Fix handling of negative sbspace() return values.

Description

Fix handling of negative sbspace() return values.

I found that at least with Chelsio NICs TOE sockets quite often report
negative sbspace() values. Using unsigned variable to store it resulted
in attempts to aggregate too much data in one sosend() call, that caused
errors and following connection termination.

MFC after: 2 weeks

Details

Provenance
mavAuthored on
Parents
rS313778: Improve code readability and fix compilation error when using clang 4.x.
Branches
Unknown
Tags
Unknown