Hi,

First of all thanks for the help till here. I am successfully able to
send and receive messages to and from gtalk users.

But I have a problem going on. Initially I was storing rid and sid's on
client side and sending them to backend with every request. Now I
changed the way, and I store rid and sid's as session parameters on
server side itself.

However after this change I can see a random behavior that, the server
side script never executes 2nd ajax call until it has received response
for the 1st one. Weird but thats what I can see from the logs.

2009-03-04 19:08:54
Sending Body>>
<body rid='1577625' sid='c17e4b814604772bda09e5a399202f1d4d647e30'
xmlns='http://jabber.org/protocol/httpbind'/>

2009-03-04 19:09:54
Received Body<<
<body xmlns='http://jabber.org/protocol/httpbind'/>

2009-03-04 19:09:54
Sending Body>>
<body rid='1577626' sid='c17e4b814604772bda09e5a399202f1d4d647e30'
xmlns='http://jabber.org/protocol/httpbind'><message
xmlns='jabber:client' type='chat' from='[email protected]/jaxl'
to='[email protected]' id='3'><body>hey
thr?</body></message></body>

2009-03-04 19:10:54
Received Body<<
<body xmlns='http://jabber.org/protocol/httpbind'/>

2009-03-04 19:10:54
Sending Body>>
<body rid='1577627' sid='c17e4b814604772bda09e5a399202f1d4d647e30'
xmlns='http://jabber.org/protocol/httpbind'/>

2009-03-04 19:11:55
Received Body<<
<body xmlns='http://jabber.org/protocol/httpbind'/>

I say so because from the logs above I can see even though message was
sent along with the ping request at 2009-03-04 19:08:54, it was passed
to the server side only at 2009-03-04 19:09:54 i.e. 1 minute after i
sent the message and after first request timed out. And as a result my
messages are send only after a delay of maximum 1 minute, until an
ongoing ping times out. This wasn't happening before though (with rid
and sid saved on client side)

Any idea why is this happening? Any help, suggestions, pointers?

Regards,
Abhinav


-- 
imoracle

------------------------------------
JAXL - Jabber XMPP Library in PHP
http://code.google.com/p/jaxl
------------------------------------
------------------------------------------------------------------------
imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412
View this thread: http://www.jabberforum.org/showthread.php?t=1446

Reply via email to