T
Tony Ser
Come across an issue with IIS process HTTP request one by one, not
simultaneously.
I have a page that takes a long time to process.
When the page is accessed by 2 seperate browser, both request will be
processed the same time. But if the 2nd browser is opened by IE->File->New
Window, when the 2 browsers try to access the same page, the requests are
handle sequentially.
Same behaviour with 2 firefox browser.
I notice second instance of IE opened by IE->File->New Window share the same
Session, but I have disabled the Session state on the IIS for testing. Still
have the same effect.
Any clue ?
The following code will introduce delay (I know it is not good code, just
something that could demo the issue)
Notice if 2 machine or 2 totally seperated browser try to access the page,
their start time and end time will overlap. But if you open the second IE
browser by IE->File->New Window, the startime and end time from 2 browser
does not overlap.
<%
Response.Buffer = true
Function WaitFor(SecDelay)
timeStart = Timer()
timeEnd = timeStart + SecDelay
Response.Write "Timer started at " & Time() & "<br>"
i = SecDelay
Do While timeStart < timeEnd
If i = Int(timeEnd) - Int(timeStart) Then
i = i - 1
End if
timeStart = Timer()
Loop
Response.Write "End time: " & Time()
End Function
Call WaitFor(20)
%>
simultaneously.
I have a page that takes a long time to process.
When the page is accessed by 2 seperate browser, both request will be
processed the same time. But if the 2nd browser is opened by IE->File->New
Window, when the 2 browsers try to access the same page, the requests are
handle sequentially.
Same behaviour with 2 firefox browser.
I notice second instance of IE opened by IE->File->New Window share the same
Session, but I have disabled the Session state on the IIS for testing. Still
have the same effect.
Any clue ?
The following code will introduce delay (I know it is not good code, just
something that could demo the issue)
Notice if 2 machine or 2 totally seperated browser try to access the page,
their start time and end time will overlap. But if you open the second IE
browser by IE->File->New Window, the startime and end time from 2 browser
does not overlap.
<%
Response.Buffer = true
Function WaitFor(SecDelay)
timeStart = Timer()
timeEnd = timeStart + SecDelay
Response.Write "Timer started at " & Time() & "<br>"
i = SecDelay
Do While timeStart < timeEnd
If i = Int(timeEnd) - Int(timeStart) Then
i = i - 1
End if
timeStart = Timer()
Loop
Response.Write "End time: " & Time()
End Function
Call WaitFor(20)
%>