[Twisted-Python] What is backlog?
What is backlog parameter in twisted.application.internet.TCPServer constructor? -- Good luck, Pavel Bastov
Just guessing it's the parameter that gets passed to the listen system call. And that again tells the kernel how many connections to allow to backlog. Citing the listen manpage on Linux: The backlog argument defines the maximum length to which the queue of pending connections for sockd may grow. If a connection request arrives when the queue is full, the client may receive an error with an indication of ECONNREFUSED or, if the underlying protocol supports retransmission, the request may be ignored so that a later reattempt at connection succeeds. Andreas
Thanks for the info. Do you have any ideas on what value to use under small, medium, and high load? On Tue, Apr 1, 2008 at 4:05 PM, Andreas Kostyrka <andreas@kostyrka.org> wrote:
Just guessing it's the parameter that gets passed to the listen system call. And that again tells the kernel how many connections to allow to backlog.
Citing the listen manpage on Linux:
The backlog argument defines the maximum length to which the queue of pending connections for sockd may grow. If a connection request arrives when the queue is full, the client may receive an error with an indication of ECONNREFUSED or, if the underlying protocol supports retransmission, the request may be ignored so that a later reattempt at connection succeeds.
Andreas
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Good luck, Pavel Bastov xooChat Team Leader http://www.xoochat.com/
Benchmark/Test/Google? Sorry, no idea ;) Andreas Am Dienstag, den 01.04.2008, 16:22 +0600 schrieb Pavel:
Thanks for the info.
Do you have any ideas on what value to use under small, medium, and high load?
On Tue, Apr 1, 2008 at 4:05 PM, Andreas Kostyrka <andreas@kostyrka.org> wrote:
Just guessing it's the parameter that gets passed to the listen system call. And that again tells the kernel how many connections to allow to backlog.
Citing the listen manpage on Linux:
The backlog argument defines the maximum length to which the queue of pending connections for sockd may grow. If a connection request arrives when the queue is full, the client may receive an error with an indication of ECONNREFUSED or, if the underlying protocol supports retransmission, the request may be ignored so that a later reattempt at connection succeeds.
Andreas
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Thanks anyway :) On Tue, Apr 1, 2008 at 7:11 PM, Andreas Kostyrka <andreas@kostyrka.org> wrote:
Benchmark/Test/Google? Sorry, no idea ;)
Andreas
Am Dienstag, den 01.04.2008, 16:22 +0600 schrieb Pavel:
Thanks for the info.
Do you have any ideas on what value to use under small, medium, and high load?
On Tue, Apr 1, 2008 at 4:05 PM, Andreas Kostyrka <andreas@kostyrka.org> wrote:
Just guessing it's the parameter that gets passed to the listen system call. And that again tells the kernel how many connections to allow to backlog.
Citing the listen manpage on Linux:
The backlog argument defines the maximum length to which the queue of pending connections for sockd may grow. If a connection request arrives when the queue is full, the client may receive an error with an indication of ECONNREFUSED or, if the underlying protocol supports retransmission, the request may be ignored so that a later reattempt at connection succeeds.
Andreas
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Good luck, Pavel Bastov xooChat Team Leader http://www.xoochat.com/
participants (2)
-
Andreas Kostyrka -
Pavel