Under what conditions will a "long polling" PHP script cease to execute?
Does it have to stop itself? What if someone visits my site, starts the script on the server开发者_StackOverflow社区, and then leaves (or his phone hibernates)? I'm using jQuery.
As soon as it times out, which is usually 30-60 seconds after the script starts, but you can change it.
精彩评论