Ticket #44 (new defect)

Opened 3 years ago

Last modified 13 months ago

Inability to connect to Elvin server on OS X throws exception

Reported by: chris Owned by:
Priority: major Milestone:
Component: OSX Version: eddie-0.35
Keywords: Cc:

Description

When Eddie on OS X cannot connect to the Elvin server it throws the exception below. The Elvin module should be able to handle this more gracefully and continue to retry, like it does on other platforms.

Exception in thread Elvin Dispatcher:Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/threading.py", line 442, in __bootstrap
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/elvin/threaded.py", line 301, in run
    self.dispatch()
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/elvin/threaded.py", line 373, in dispatch
    sleep_time)
  File "<string>", line 1, in fileno
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/socket.py", line 143, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: (9, 'Bad file descriptor')

If I manually try to connect to the Elvin server from the OS X host at this time, I get:

$ telnet elvin 2917
Trying 10.0.0.1...
telnet: connect to address 10.0.0.1: Connection refused
telnet: Unable to connect to remote host

Change History

Changed 3 years ago by chris

Also, this exception is only output to the console (killing the Elvin thread, possibly) but needs to be caught and logged like most other exceptions.

Changed 13 months ago by chris

  • milestone eddie-0.36 deleted
Note: See TracTickets for help on using tickets.