Handle fd/socket exception in select
This commit is contained in:
parent
cccee20cdf
commit
3ac40ac703
1 changed files with 5 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ class AbstractServer(io.IOBase):
|
|||
"""Generic open function that register the server un _rlist in case of successful _open"""
|
||||
if self._open():
|
||||
_rlist.append(self)
|
||||
_xlist.append(self)
|
||||
|
||||
|
||||
def close(self):
|
||||
|
|
@ -88,3 +89,7 @@ class AbstractServer(io.IOBase):
|
|||
self.logger.debug("Message '%s' appended to Queue", message)
|
||||
if self not in _wlist:
|
||||
_wlist.append(self)
|
||||
|
||||
def exception(self):
|
||||
"""Exception occurs in fd"""
|
||||
print("Unhandle file descriptor exception on server " + self.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue