HomeFreeBSD

Fix the check for an empty send socket buffer on a TOE TLS socket.

Description

Fix the check for an empty send socket buffer on a TOE TLS socket.

Compare sbavail() with the cached sb_off of already-sent data instead of
always comparing with zero. This will correctly close the connection and
send the FIN if the socket buffer contains some previously-sent data but
no unsent data.

Reported by: Harsh Jain @ Chelsio
Sponsored by: Chelsio Communications

Details

Provenance
jhbAuthored on Mar 14 2018, 8:49 PM
Parents
rG02d2bcfabadf: Remove TLS-related inlines from t4_tom.h to fix iw_cxgbe(4) build.
Branches
Unknown
Tags
Unknown

Event Timeline