Esempio n. 1
0
def handle_control_request(socket, request):
    try:
        tunnel = Tunnel.get_by_control_request(request)
    except RuntimeError, e:
        protocol.send_message(socket, error_reply('notavailable'))
        socket.close()
        return
Esempio n. 2
0
def handle_control_request(socket, request):
    try:
        tunnel = Tunnel.get_by_control_request(request)
    except RuntimeError, e:
        protocol.send_message(socket, error_reply('notavailable'))
        socket.close()
        return