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

Gateway raises an exception when shut down #93

Closed
agronholm opened this issue Nov 1, 2011 · 3 comments
Closed

Gateway raises an exception when shut down #93

agronholm opened this issue Nov 1, 2011 · 3 comments
Assignees
Milestone

Comments

@agronholm
Copy link

INFO:py4j.java_gateway:Callback Server Shutting Down
ERROR:py4j.java_gateway:Error while waiting for a connection.
Traceback (most recent call last):
File "/home/alex/virtualenv/etikettu/local/lib/python2.7/site-packages/py4j-0.7-py2.7.egg/py4j/java_gateway.py", line 909, in run
socket, _ = self.server_socket.accept()
File "/usr/lib/python2.7/socket.py", line 202, in accept
sock, addr = self._sock.accept()
error: [Errno 22] Invalid argument

All I did to get this was gateway.shutdown() some time after it had started up.

@ghost ghost assigned bartdag Nov 1, 2011
@bartdag
Copy link
Collaborator

bartdag commented Nov 1, 2011

This is in the log right (the exception is not propagated to the client's code)?

There is no way to prevent the exception to be raised (a socket is closed while listening), but the log level should be debug or something like that since this is an expected exception.

Thanks for noticing this inconsistency!

@agronholm
Copy link
Author

Right. Perhaps this specific exception should be silently ignored?

@bartdag
Copy link
Collaborator

bartdag commented Jun 14, 2013

I'll close this issue because I believe the problem was adressed in issue #92 . Please open a new issue if there are other messages that need to be tuned down.

@bartdag bartdag closed this as completed Jun 14, 2013
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