Skip to content

CTRL+C does not work in error cases #65

Description

@amotl

Hi again,

thanks once more for conceiving this excellent package, we are about to explore its most recent features. Along the lines, we wanted to report that an application using the package does not react to KeyboardInterrupt / SIGINT. Maybe you can do something about it?

With kind regards,
Andreas.

Appendix

Problem

$ python example.py
[2025-10-24T23:21:31Z ERROR r2d2] error connecting to server: Connection refused (os error 61)
[2025-10-24T23:21:32Z ERROR r2d2] error connecting to server: Connection refused (os error 61)
[2025-10-24T23:21:33Z ERROR r2d2] error connecting to server: Connection refused (os error 61)
[2025-10-24T23:21:34Z ERROR r2d2] error connecting to server: Connection refused (os error 61)
[2025-10-24T23:21:38Z ERROR r2d2] error connecting to server: Connection refused (os error 61)
^C^C^C^C^C^C^C^C^C^C^C^C^C^C[2025-10-24T23:21:44Z ERROR r2d2] error connecting to server: Connection refused (os error 61)
^C^C^C^C^C^C^C^C^C^C^C^C^C[2025-10-24T23:21:57Z ERROR r2d2] error connecting to server: Connection refused (os error 61)

Observations

At some point, the application will finally fail and trip.

pyo3_runtime.PanicException: Could not create a pool of connections: Error(Some("error connecting to server: Connection refused (os error 61)"))

30 seconds default timeout?

$ time python example.py
[...]
real	0m30.367s
user	0m0.182s
sys	0m0.058s

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions