Skip to content

rpc: fix two client connection failures

Benjamin Coddington linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rpc: skip secure ports in TIME_WAIT and report connect errorsrpc/rpc.py+24 -140 replies
2/2rpc: fail pending calls when a connection closesrpc/rpc.py+35 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH pynfs 0/2] rpc: fix two client connection failures

These fix two bugs in the pynfs RPC client, both seen while running the 4.1 server tests.

The first breaks --secure on a back-to-back run: the client rebinds the reserved port left in TIME_WAIT by the previous run, connect() fails with EADDRNOTAVAIL, and the error is replaced by EBADF, so the run ends with "Initialization failed".

The second hangs a test when the server closes the connection: waiting calls are never woken, and the polling thread dies in select() on the closed socket's fd of -1. With the fix those calls fail with an RPC error and the test is reported as a FAILURE.

Benjamin Coddington (2):
rpc: skip secure ports in TIME_WAIT and report connect errors
rpc: fail pending calls when a connection closes

 rpc/rpc.py | 80 ++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 59 insertions(+), 21 deletions(-)

base-commit: cd4701827a8261fedbfb4c6e39029fb9671321a6

Signature · 1 line
2.53.0