Bump

On Apr 13, 2:11 pm, tjeerdkramer <[email protected]> wrote:
> O.k., I've managed to enable some additional logging and here's what
> happens:
>
> 2010-04-08 11:58:06 - libape-spidermonkey.c:2180 - JavaScript : Ape is
> ready !
> 2010-04-08 12:05:53 - libape-spidermonkey.c:2180 - JavaScript : 401 -
> unknown channel Ocr2rPNb
> 2010-04-08 12:05:57 - src/users.c:180 - New user - (ip :217.30.96.127)
> 2010-04-08 12:05:57 - libape-spidermonkey.c:2180 - JavaScript : New
> user has JOINED the channel (ocr2rpnb)
> 2010-04-08 12:09:12 - libape-spidermonkey.c:2180 - JavaScript : User
> has LEFT the channel (ocr2rpnb)
>
> In my website's code, under the hood, the following happens:
>
> - The users browses to page_1.php.
> - The "domready" event is used to do several things:
>       1) A new instance of the APE.client is created
>       2) Two or three parallel requests are made to request_1.php,
> request_2.php, etc. These all take a few seconds (5-15) to complete.
> At the end of these requests (so 5-15 seconds after the domready
> event) these scripts call the inlinepush.js serverside script. This
> will push some data to the main script (page_1.php) that enables me to
> know when and if the scripts (request_x.php) have finished.
>
> However, as you can see, according to the ape.log, the inlinepush.js
> script is being called BEFORE the user has joined the channel. How is
> this possible? The channel should have been created right after the
> domready event, as that is where a new client is initiated? Then a few
> more seconds AFTER the inlinepush.js command is attemped (but failed)
> the channel is created.
>
> To me, it looks like the creation of a new client takes too long?
>
> Anyone in here who can help me find out what's going on?
>
> T.
>
> On Apr 7, 12:41 pm, tjeerdkramer <[email protected]> wrote:
>
>
>
> > I am creating a channel per user. However, sometimes I get a
> > UNKNOWN_CHANNEL error. The only thing I can imagine happening is the
> > following
>
> > - A user enters my page, creating his unique channel.
> > - He or she runs some of the site's code, requesting a few scripts
> > that after a few seconds respond with an inlinepush command
> > - Before the script that is calling the inlinepush command has
> > finished, the user has left the page and therefore the channel is
> > destroyed
>
> > However, this happens too often, so I don't think my scenario is
> > correct. There is no way for me to test whether this is the case
> > through, and besides that, I am unable to reproduce this scenario and
> > create the error myself.
>
> > How do I find out what is happening? For example, how do I log the
> > succesfull creation of a channel? And how do I log when a channel is
> > destroyed?

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

Reply via email to