def receive_message(socket, name):
    """
    Receive a message of size 1000 from socket.
    """
    try:
        response = socket.recv(1000).decode('ascii')
    except Exception as e:
        print('[' + name + '_ERROR] Did not receive anything in request')
        return False
    return response