"bad file descriptor" error after shutting down python ipc.SocketServer
-----------------------------------------------------------------------
Key: AVRO-130
URL: https://issues.apache.org/jira/browse/AVRO-130
Project: Avro
Issue Type: Bug
Affects Versions: 1.1.0
Environment: python 2.6, ubuntu (jaunty)
Reporter: Patrick Hunt
I see the following error after shutting down the ipc.SocketServer:
--------------
....
Closed: Connection-('127.0.0.1', 35220)
Exception in thread SocketServer on ('localhost', 0):
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
self.run()
File "/home/phunt/dev/workspace/avro-rpc-quickstart/lib/python/avro/ipc.py",
line 385, in run
raise e
error: [Errno 9] Bad file descriptor
----------------
If I put a "print("done")" as the last line in:
http://github.com/phunt/avro-rpc-quickstart/blob/master/src/main/python/send_message.py
The above error is printed _after_ the done message it output. It seems that
the socketserver is not shutting down correctly during the "close" and
subsequently fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.