public void workComplete (Worker worker) {
        worker.setSocket(null);
        AsynchronousSocketChannel socket = requests.poll();

        if (socket == null) {
            workers.add(worker);
        }
        else {
            worker.setSocket(socket);
            worker.notify();
        }
    }