Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e06799f9 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Use shutdown() instead of close() when disconnecting a TCP socket



By using shutdown() rather than close() we allow the RPC client to wait
for the TCP close handshake to complete before we start trying to reconnect
using the same port.
We use shutdown(SHUT_WR) only instead of shutting down both directions,
however we wait until the server has closed the connection on its side.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent ef803670
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment