Linux NFS development
 help / color / mirror / Atom feed
* [PATCH pynfs 0/2] rpc: fix two client connection failures
@ 2026-11-19 21:40 Benjamin Coddington
  2026-11-19 21:40 ` [PATCH pynfs 1/2] rpc: skip secure ports in TIME_WAIT and report connect errors Benjamin Coddington
  2026-11-19 21:41 ` [PATCH pynfs 2/2] rpc: fail pending calls when a connection closes Benjamin Coddington
  0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Coddington @ 2026-11-19 21:40 UTC (permalink / raw)
  To: calum.mackay; +Cc: linux-nfs

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
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-19 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 21:40 [PATCH pynfs 0/2] rpc: fix two client connection failures Benjamin Coddington
2026-11-19 21:40 ` [PATCH pynfs 1/2] rpc: skip secure ports in TIME_WAIT and report connect errors Benjamin Coddington
2026-11-19 21:41 ` [PATCH pynfs 2/2] rpc: fail pending calls when a connection closes Benjamin Coddington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox