Hi everyone, thanx for APE - it's owesome!
Getting some problems with XHRStreaming mode (APE.Config.transport =
1).
I have realtime chat system written on PHP. Messages to server goes
through PHP script, then after proccessing they returns through APE-
server.
When I'm using long-pooling mode, everything is fine. When I switch to
XHRStreaming mode, it starts working ok - I receive messages, no
problem... But if I live it idle for 7 - 15 minutes (no messages), APE
then stops receiving any messages. Looks like XHR channel hangs...
I tested it in mozilla and safari. Same result.
What I figured from firebug (network tab), that when XHR started,
browser opens channel:
[{"cmd":"CONNECT","chl":1}] or CHECK...
and starts receive data in it.
Same time JSF periodically sends commands (with blank response):
[{"cmd":"CHECK","chl":20,"sessid":"3f35ff0cf636d71ddfc83814e7597fb1"}]
[{"cmd":"CHECK","chl":21,"sessid":"3f35ff0cf636d71ddfc83814e7597fb1"}]
etc...
So if I receive data from server (chat messages) through opened XHR
connection frequently - it works ok.
If there is no messages for long time - XHR channel hangs...
Also sometimes JSF starts to send commans like
[{"cmd":"CHECK","chl":20,"sessid":"3f35ff0cf636d71ddfc83814e7597fb1"}]
VERY VERY frequently!!! About 10-15 per second! In this time XHR also
stops working.
- - -
I have latest version of APE server from git, but I also checked
version 1.0 - same bug.
Thanx!
--
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/