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

main thread does not exit when connection fails #124

Open
matteogrolla opened this issue Aug 24, 2020 · 0 comments
Open

main thread does not exit when connection fails #124

matteogrolla opened this issue Aug 24, 2020 · 0 comments

Comments

@matteogrolla
Copy link

Hi,
I'm using rabbitpy 2.0.1 and I was expecting that since vhost got eliminated by mistake the instruction

conn = rabbitpy.Connection(self.url)

would throw an exception and exit

instead what I see is main thread enters an endless loop in connection.py row 313:

while not self._channel0.open:
if not self._exceptions.empty():
exception = self._exceptions.get()
self._io.stop()
raise exception
time.sleep(0.01)

and pymongo_server_monitor threads enter endless loop in connection.py row 116

   while not self.__should_stop():
           ...

from the OS point of view the program seems running normally, but it's not and I need to send an alert.
What should I do in this situation?

thanks

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

1 participant