AJAX Long-polling doesn't keep connection open?

The major problem I think you're having is in your assuming that complete: poll will use the passed-in parameter pid from the current call. Try this.

I think once you recieve a response.. the browser will not and should not keep the connection open.. also it depends a lot upon the browser your using and headers you r sending.. im nt much of a PHP guy but.. the Header shud contain Connection:Keep-alive to keep the connection open.. also going by the various tests I conducted. 1. IE will not keep the existing connection open but will open 2 connections simultaneously and will keep the second one open and will close the first one.

2. Chrome behaves nicely send 2 requests (one for favicon) but keeps the connection open. 3.

Mozilla sends only one request and keep it open. Are you using IE9 to test this?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions