'Initialize or reset all of our internal state variables for a given
connection. If we disconnect and reconnect, all of our state needs to
be wiped.'

def _init_connection_state(self):

    super(BaseConnection, self)._init_connection_state()
    self.base_events = (self.READ | self.ERROR)
    self.event_state = self.base_events
    self.socket = None
