N
N
Neo322013-12-29 16:28:10
PHP
Neo32, 2013-12-29 16:28:10

Where does the “canceled” status of the browser come from, what does it mean?

The problem is this: I load a page and after loading it I make a request to the server with ajax (long polling) for 25 seconds. The page is loaded, connected by ajax to the server. Sometimes (!), if you refresh the page (or just follow the link), the request gets the status "pending", and then the connection to the server via ajax gets the status "canceled" and the page hangs for about 5 seconds. Why does this happen?
I use WAMP, Apache 2.4.4, php 5.4

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Nitka, 2014-01-21
@Rumzik

the fact that the browser hangs may be due to the session .. do you even check during the long pulling itself, requests on the site are executed or hang until the long pull releases the connection?

N
Neo32, 2014-04-06
@Neo32

Finally there is an answer! Use the "session_write_close()" function and you'll be fine!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question