Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout to client #137

Closed
lafrech opened this issue Oct 8, 2024 · 3 comments
Closed

Add timeout to client #137

lafrech opened this issue Oct 8, 2024 · 3 comments

Comments

@lafrech
Copy link

lafrech commented Oct 8, 2024

When server is down, a ConnectionRefusedError ultimately bubbles up.

It would be nice if the convert and compare methods had a timeout argument to handle this gracefully and return a dedicated exception.

@regebro
Copy link
Member

regebro commented Oct 9, 2024

I think this should be solved in the next release.

@regebro regebro closed this as completed Oct 9, 2024
@lafrech
Copy link
Author

lafrech commented Nov 4, 2024

I think this should be solved in the next release.

Did you mean in 3.x?

Because I don't see anything regarding client timeout.

I saw the --conversion-timeout added to the server, but I don't think there's been any change to the client regarding this.

I just tested and got two different errors:

  • xmlrpc.client.Fault: <Fault 1: "<class 'TimeoutError'>:">
  • ConnectionRefusedError: [Errno 111]

@regebro
Copy link
Member

regebro commented Nov 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants