some unclosed connection

37 views
Skip to first unread message

ma liang

unread,
Apr 18, 2011, 9:48:45 PM4/18/11
to APE Project
hi, guys

    After days of running, I found that aped has many unclosed tcp connection with ESTABLISHED state.
And they are grown up with time past. Please check this pastbin http://pastebin.com/db1YM3nG
I'm using the latest github version with a little modify.

ma liang

unread,
Jan 11, 2012, 8:28:37 PM1/11/12
to Jochen Hebbrecht, APE Project
I have resolved this by enable check_idle() function in src/sock.c, with a little modify.

You can check these commit:
https://github.com/bigml/APE_Server/commit/fdf21a0dbb8d74e419770bf3ad47725ad631c9cf
https://github.com/bigml/APE_Server/commit/a1c9f6a6b23713d808c34616a0fc3e68a7d3e4c4

It checked the all ape sockets per hour, and close the 1 day idled connection.

2012/1/11 Jochen Hebbrecht <jochenh...@gmail.com>
Hi Ma Lian,

I just discovered the same thing as you!
I wonder if you had any success in solving this problem?

We have to restart APE each 7 days :-/ ... We just wrote a script to
do this automatically. If you are interested, we can share it with
you.

Jochen



On 19 apr 2011, 02:48, ma liang <bigmali...@gmail.com> wrote:
> hi, guys
>
>     After days of running, I found that aped has many unclosed tcp
> connection with ESTABLISHED state.
> And they are grown up with time past. Please check this pastbinhttp://pastebin.com/db1YM3nG

Jochen Hebbrecht

unread,
Jan 12, 2012, 3:42:42 AM1/12/12
to APE Project
Thanks ma liang for your answer!

On 12 jan, 02:28, ma liang <bigmali...@gmail.com> wrote:
> I have resolved this by enable check_idle() function in src/sock.c, with a
> little modify.
>
> You can check these commit:https://github.com/bigml/APE_Server/commit/fdf21a0dbb8d74e419770bf3ad...https://github.com/bigml/APE_Server/commit/a1c9f6a6b23713d808c34616a0...
>
> It checked the all ape sockets per hour, and close the 1 day idled
> connection.
>
> 2012/1/11 Jochen Hebbrecht <jochenhebbre...@gmail.com>

Jochen Hebbrecht

unread,
Jan 12, 2012, 3:57:27 AM1/12/12
to APE Project
ma lian,

How can I know in which version of APE your commits have been made?
I'm currently using 1.1.1, but I have no idea if the commits are in
that version or not :-)

Kind regards,
Jochen


On 12 jan, 02:28, ma liang <bigmali...@gmail.com> wrote:
> I have resolved this by enable check_idle() function in src/sock.c, with a
> little modify.
>
> You can check these commit:https://github.com/bigml/APE_Server/commit/fdf21a0dbb8d74e419770bf3ad...https://github.com/bigml/APE_Server/commit/a1c9f6a6b23713d808c34616a0...
>
> It checked the all ape sockets per hour, and close the 1 day idled
> connection.
>
> 2012/1/11 Jochen Hebbrecht <jochenhebbre...@gmail.com>

ma liang

unread,
Jan 12, 2012, 8:59:08 PM1/12/12
to ape-p...@googlegroups.com, jochenh...@gmail.com
I created a gist for it. please check

https://gist.github.com/1604215

This diff is suitable for most APE_Server version, include 1.1.1.

2012/1/12 Jochen Hebbrecht <jochenh...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply all
Reply to author
Forward
0 new messages