rpc: fix two client connection failures
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rpc: skip secure ports in TIME_WAIT and report connect errorsrpc/ | +24 | 0 replies | |
| 2/2 | rpc: fail pending calls when a connection closesrpc/ | +35 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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