Hi Sa'ndor

I think that this is caused by a mysql timeout.

Alternative you could:
* use setInterval with a dummy statement to keep the connection alive. There is a thread on the newsgroup 'somewhere'.
 * connect and close the connection with every CMD that needs it
* use onError event and/or the errorNumber parameter in the query callback to reconnect * set the mysql timeout for idle connections in my.cnf to something higher.

I hope this helps.

Peter

Sándor Volenszki schreef op 2015-04-27 22:47:
Hi again!

I finished the rewrite of my code, now operte only with APE and MYSQL
from server side JS (no AJAX to PHP). It works like a charm!

But now, after a few (aprox.: 20-25 request.send) everything stops to
work, and in the log i can see this:

2015-04-27 22:39:23 - src/sock.c:293 - events_poll() : Interrupted
system call
2015-04-27 22:39:33 - src/entry.c:188 - APE starting up - pid : 8102
2015-04-27 22:39:33 - src/entry.c:251 - Starting daemon

After this nothing works until a sudo /etc/init.d/ape-server restart

What do you think is it an APE server effect, or caused by my code?

Thanx in advice,
Sándor

 --
 --
 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 [1]
 ---
 APE Project (Ajax Push Engine)
 Official website : http://www.ape-project.org/ [2]
 Git Hub : http://github.com/APE-Project/ [3]

 ---
 You received this message because you are subscribed to the Google
Groups "APE Project" group.
 To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected] [4].
 For more options, visit https://groups.google.com/d/optout [5].


Links:
------
[1] http://groups.google.com/group/ape-project?hl=en
[2] http://www.ape-project.org/
[3] http://github.com/APE-Project/
[4] mailto:[email protected]
[5] https://groups.google.com/d/optout

--
--
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/

--- You received this message because you are subscribed to the Google Groups "APE Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to