• Poul-Henning Kamp's avatar
    Get rid of the single acceptor thread. · 12bf085b
    Poul-Henning Kamp authored
    Instead of a single thread which accepts all sockets with a poll/accept
    sequence, each thread-pool will have a thread accepting on each socket.
    
    If no threads are available, the sockets will not be accepted on.
    
    CAVEATS:
    
    This commit undoubtedly leaves a number of minor issues dangling,
    they will be cleaned up as we find them.
    
    Please notice that there are changes to stats counters (some don't
    work right now a nd more changes will be coming)
    
    Changing certain acceptor-related params on the fly may not work.
    
    Testing would be very welcome.
    12bf085b
locks.h 1.65 KB