Skip to content

Error type mismatch issue in reactor handle_error #58

@sancar

Description

@sancar

handle_error is assuming that all errors it gets are IOError.
There is a type check needed in handle_error
There are user reports than it can get other errors there like following:

'Traceback (most recent call last):
 File "/usr/local/lib/python2.7/dist-packages/hazelcast/reactor.py", line 37, in _loop
 asyncore.loop(count=1000, timeout=0.01, map=self._map)
 File "/usr/lib/python2.7/asyncore.py", line 220, in loop
 poll_fun(timeout, map)
 File "/usr/lib/python2.7/asyncore.py", line 156, in poll
 read(obj)
 File "/usr/lib/python2.7/asyncore.py", line 87, in read
 obj.handle_error()
 File "/usr/local/lib/python2.7/dist-packages/hazelcast/reactor.py", line 129, in handle_error
 if error.errno != errno.EAGAIN and error.errno != errno.EDEADLK:
AttributeError: \'exceptions.KeyError\' object has no attribute \'errno\''

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions