php - Slow server script makes IE stall -
I am working on a php web application that includes calls to 3rd party web services Recently I have problems Participated because some web services are slow and / or timed out. (When this happens, the service throws an error after 5-6 minutes, which is handled by a web application)
However, the problem arises that the web while waiting for the result / time-to-time All other connections in the browser (in other windows / tabs in IE) stall it seems to be a problem in the browser, because if the web application opening a secondary window in another browser (such as Chrome) does not delay Land.
I have considered setting up web service calls asynchronously (a separate server.side process, or an AJAX call in the browser), but in the mean time I would like to know why a page awaiting When IE has put all the apps on the web app while doing it? Could it be that in the custom header or other frivolous markup move, will IE go with the connections of other pages on the same host?
The problem arises when waiting for the outcome / timeout, All other connection to the application
What you see is normal and expected behavior, if you are using session Default file-based session handler session Keeps a lock on file, when session owner requests the lock after the request is completed Land. In the meantime, if the user makes any further requests, then those requests must continue before waiting for the lock. This behavior prevents the status of a race which is otherwise losing session data.
If you are not using sessions, or have written your own session handler and do not lock it (mostly, you have to code that behavior yourself), yes, IE Has been a strange practice and I have no other suggestions.
I have considered setting up web service calls asynchronously
If the web service is unreliable, it is a good idea to work / Message queue system should be considered. It is in the form of one.
Comments
Post a Comment