simonB2007
Programmer
K,
So I want to place 2 HTTPRequests simultaneiously.
Both will return recordsets from SQL Server.
So far, I've created 2 seperate request objects, the first with a call that normally takes around 20 seconds, the second with a call that normally takes around 2 seconds.
Using Firebug COnsole in FF, I can see both get initiated and start whirring away at the same time.
However, the '2 second' call does not finish until after call number 1 has finished.
With some logging in my Stored Procedure, I can see that the second call does not even begin to execute on the SQLServer until the first has finished.
I can think of some practicalities as to why simultaneous calls might not be 'allowed' by design .. for a start, it would lead into the realms of Javascript multithreading ?
However, personally, I wouldn't mind if the second call executed, gathered it's data and THEN waited until the first had finished, at least then, both could dumping their results to the client within milliseconds of each other.
It is annoying at the moment that the second does not even start to execute, in real terms, until the first has completed.
Wondered if anyone could enlighted me on the internal workings of the browser when calling 2 HTTPRequests at the same time ?
Many Thanks
Simon
So I want to place 2 HTTPRequests simultaneiously.
Both will return recordsets from SQL Server.
So far, I've created 2 seperate request objects, the first with a call that normally takes around 20 seconds, the second with a call that normally takes around 2 seconds.
Using Firebug COnsole in FF, I can see both get initiated and start whirring away at the same time.
However, the '2 second' call does not finish until after call number 1 has finished.
With some logging in my Stored Procedure, I can see that the second call does not even begin to execute on the SQLServer until the first has finished.
I can think of some practicalities as to why simultaneous calls might not be 'allowed' by design .. for a start, it would lead into the realms of Javascript multithreading ?
However, personally, I wouldn't mind if the second call executed, gathered it's data and THEN waited until the first had finished, at least then, both could dumping their results to the client within milliseconds of each other.
It is annoying at the moment that the second does not even start to execute, in real terms, until the first has completed.
Wondered if anyone could enlighted me on the internal workings of the browser when calling 2 HTTPRequests at the same time ?
Many Thanks
Simon