Zhang Huangbin:
> 
> > On Aug 18, 2016, at 10:02 PM, Wietse Venema <wie...@porcupine.org> wrote:
> > 
> > What are you using to "run" the policy service? Try using "telnet
> > 127.0.0.1 9998" or "nc 127.0.0.1 9998" to test it.
> 
> Thanks Wietse. :)
> 
> What do you mean "run" the policy service? It's a python program.

How does it handle concurrent connections? The symptoms that you
describe (connection refused / connection timed out) suggest that
it handles one connection at a time, somewhat like this:

    forever:
        accept connection
        while not EOF:
            read request
            write response
        close connection

> > In particular, what happens when you make 100 simultaneous connections?
> 
> Any idea how i can simulate 100 concurrent connections on Linux command line?

Open multiple command windows? If my suspicion is correct then I
expect that two windows would already be sufficient: the second
connection is unresponsive until the first connection is closed.

        Wietse

Reply via email to