[Twisted-Python] Could not accept new connection
Hi all, today I got this error in my twisted.log [twisted.web.server.Site] Could not accept new connection (ECONNABORTED) What could be a possible cause of this? Any ways to fix it? Thanks in advance. -- Good luck, Pavel Bastov
On Thursday 28 August 2008, Pavel wrote:
Hi all,
today I got this error in my twisted.log
[twisted.web.server.Site] Could not accept new connection (ECONNABORTED)
What could be a possible cause of this? Any ways to fix it?
The (ECONNABORTED) suggests that this error originated in the OS and was only propagated by Python and Twisted. Which OS are you using? The documentation of the C accept() call might help. On my Linux system "man 2 accept" just says "ECONNABORTED: A connection has been aborted." though. :( Bye, Maarten
How many simultaneous clients connected on your server? By default, linux is configured to have 1024 file descriptors pre process. You may have to set your ulimit higher. On Thu, Aug 28, 2008 at 9:05 PM, Pavel <pbastov@gmail.com> wrote:
Hi all,
today I got this error in my twisted.log
[twisted.web.server.Site] Could not accept new connection (ECONNABORTED)
What could be a possible cause of this? Any ways to fix it?
Thanks in advance.
-- Good luck,
Pavel Bastov
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Thu, 28 Aug 2008 21:19:21 +0800, Alvin Delagon <adelagon@gmail.com> wrote:
On Thu, Aug 28, 2008 at 9:05 PM, Pavel <pbastov@gmail.com> wrote:
Hi all,
today I got this error in my twisted.log
[twisted.web.server.Site] Could not accept new connection (ECONNABORTED)
What could be a possible cause of this? Any ways to fix it?
Thanks in advance.
-- Good luck,
Pavel Bastov
How many simultaneous clients connected on your server? By default, linux is configured to have 1024 file descriptors pre process. You may have to set your ulimit higher.
Encountering a ulimit on open files will result in EMFILE rather than ECONNABORTED. Jean-Paul
Thanks for your replies. I don't think I have reached the limit of 1024 connections. Other clients are connecting successfully to the server, so, I think I should ignore this error as Jean-Paul suggests. On Thu, Aug 28, 2008 at 7:23 PM, Jean-Paul Calderone <exarkun@divmod.com> wrote:
On Thu, 28 Aug 2008 21:19:21 +0800, Alvin Delagon <adelagon@gmail.com> wrote:
On Thu, Aug 28, 2008 at 9:05 PM, Pavel <pbastov@gmail.com> wrote:
Hi all,
today I got this error in my twisted.log
[twisted.web.server.Site] Could not accept new connection (ECONNABORTED)
What could be a possible cause of this? Any ways to fix it?
Thanks in advance.
-- Good luck,
Pavel Bastov
How many simultaneous clients connected on your server? By default, linux is configured to have 1024 file descriptors pre process. You may have to set your ulimit higher.
Encountering a ulimit on open files will result in EMFILE rather than ECONNABORTED.
Jean-Paul
_______________________________________________ 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/
On Thu, 28 Aug 2008 19:05:38 +0600, Pavel <pbastov@gmail.com> wrote:
Hi all,
today I got this error in my twisted.log
[twisted.web.server.Site] Could not accept new connection (ECONNABORTED)
What could be a possible cause of this? Any ways to fix it?
This means that a client started to connect to your server but then quickly aborted the attempt. The server saw the attempt but before it could accept the new connection, the client had abandoned it. Assuming other clients are successfully connecting to your server, you can safely ignore this. Jean-Paul
participants (4)
-
Alvin Delagon
-
Jean-Paul Calderone
-
Maarten ter Huurne
-
Pavel