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 <[email protected]> > 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 <[email protected]> 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 > > I'm using the latest github version with a little modify. > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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/
