'Overriding to add "max" support
http://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#p-max'

def _check_close(self):

    keep_alive = self.msg.getheader('keep-alive')
    if (keep_alive and keep_alive.lower().endswith('max=1')):
        debug('will_close    =    True    due    to    max=1')
        return True
    conn = self.msg.getheader('connection')
    if (conn and ('keep-alive' in conn.lower())):
        debug('will_close    =    False    due    to    Connection:    keep-alive')
        return False
    elif (conn and ('close' in conn.lower())):
        debug('will_close    =    True    due    to    Connection:    close')
        return True
    if (self.version == 11):
        debug('will_close    =    False    due    to    default    keep-alive    in    1.1')
        return False
    pconn = self.msg.getheader('proxy-connection')
    if (pconn and ('keep-alive' in pconn.lower())):
        return False
    return True
