(self, _catchall = True)
closes the connection, releasing all held resources
closes the connection, releasing all held resources
closes the connection releasing all held resources
def close(self, _catchall = True):
        """closes the connection, releasing all held resources"""
        if self._closed:
            return
        self._closed = True
        try:
            self._async_request(consts.HANDLE_CLOSE)
        except EOFError:
            pass
        except Exception:
            if not _catchall:
                raise
        finally:
            self._cleanup(_anyway = True)
def close ( self , _catchall = True ) : if self . _closed : return self . _closed = True try : self . _async_request ( consts . HANDLE_CLOSE ) except EOFError : pass except Exception : if not _catchall : raise finally : self . _cleanup ( _anyway = True )