473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Requests from IE shortcut handled sequentially

Hello, All.

I encouraged some strange behaviour of either IIS, ASP.NET, IE or donn't
know what...

I have a simple wait.aspx page

private void Page_Load(object sender, System.EventArgs e)
{
object o = new object();
lock(o)
{
Response.Write("<BR>" + DateTime.Now);
System.Threading.Monitor.Wait(o, 5000);
Response.Write("<BR>" + DateTime.Now);
}
}

It is just writing the start time, wait for 5 seconds, and write end time.

Now I create shortcut for the page http://localhost/asp.net/wait/wait.aspx
on my desktop and click it twice to open 2 IE windows. After the first time
they were opened, I do such test:
1) Click refresh on the page # 1
2) Quickly click refresh on the page # 2
3) Waiting

I see such results:

Page #1
14.06.2006 17:42:10
14.06.2006 17:42:15

Page # 2
14.06.2006 17:42:15
14.06.2006 17:42:20

So I see that my requests were handled sequentially (or were sent by IE
seqentially).

If I open 2 totally separate IE, and enter in both and do the same test, I
see different results:

Page #1
14.06.2006 17:52:44
14.06.2006 17:52:49

Page # 2
14.06.2006 17:52:45
14.06.2006 17:52:50

I.e. requests handled in parallel.

The same behaviour is for ASP (not ASP.NET). But for PHP requests handled in
parallel inspite of the way to open IE.

Also tested with Firefox. Requests ALWAYS handled sequentially. So I am
lost, what is the problem, and where the problem (in client or on server).

Hope for your help !!! :-)

Thanks!
- Alex.
Jun 14 '06 #1
2 1344
there are two issues to look for.

1) if you are using sessions, then requests are serialized by session
ticket. starting the browser from a shortcut starts a new session, but
file->new window starts a second browser instance with the same ticket.

2) IE limits you to 2 concurrent connections (unless a config change is
made) to the same server. firefox allows 8 per sever by default.

you are probably seeing #1

-- bruce (sqlwork.com)
"Alex" <fo*************@yandex.ru> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hello, All.

I encouraged some strange behaviour of either IIS, ASP.NET, IE or donn't
know what...

I have a simple wait.aspx page

private void Page_Load(object sender, System.EventArgs e)
{
object o = new object();
lock(o)
{
Response.Write("<BR>" + DateTime.Now);
System.Threading.Monitor.Wait(o, 5000);
Response.Write("<BR>" + DateTime.Now);
}
}

It is just writing the start time, wait for 5 seconds, and write end time.

Now I create shortcut for the page http://localhost/asp.net/wait/wait.aspx
on my desktop and click it twice to open 2 IE windows. After the first
time they were opened, I do such test:
1) Click refresh on the page # 1
2) Quickly click refresh on the page # 2
3) Waiting

I see such results:

Page #1
14.06.2006 17:42:10
14.06.2006 17:42:15

Page # 2
14.06.2006 17:42:15
14.06.2006 17:42:20

So I see that my requests were handled sequentially (or were sent by IE
seqentially).

If I open 2 totally separate IE, and enter in both and do the same test, I
see different results:

Page #1
14.06.2006 17:52:44
14.06.2006 17:52:49

Page # 2
14.06.2006 17:52:45
14.06.2006 17:52:50

I.e. requests handled in parallel.

The same behaviour is for ASP (not ASP.NET). But for PHP requests handled
in parallel inspite of the way to open IE.

Also tested with Firefox. Requests ALWAYS handled sequentially. So I am
lost, what is the problem, and where the problem (in client or on server).

Hope for your help !!! :-)

Thanks!
- Alex.

Jun 14 '06 #2

Thank you, Bruce!

It was the issue #1, as you said. It became ovident after I have specified
cookieless="true" in web.config.

-Alex.
there are two issues to look for.

1) if you are using sessions, then requests are serialized by session
ticket. starting the browser from a shortcut starts a new session, but
file->new window starts a second browser instance with the same ticket.

2) IE limits you to 2 concurrent connections (unless a config change is
made) to the same server. firefox allows 8 per sever by default.

you are probably seeing #1

-- bruce (sqlwork.com)

Jun 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bruce W.1 | last post by:
With ASP.NET I've found that request are processed sequentially, one at a time, at least on a server with one CPU. If one request blocks for some reason, maybe on a long database query, then all...
4
by: The Flyer | last post by:
Hi Sorry for posting this message to so many groups, but I was not sure which group the windows keyboard experts would be reading, so I ventured to post it to all of them. I want to map or...
1
by: Agoston Bejo | last post by:
Hello, I have to write some asp pages that react to HEAD and GET requests. The scenario is this: This is going to be a WAP site. When someone goes to the main page, it is redirected to a payment...
1
by: Matthew | last post by:
C# Component Shortcut Key Event Focus We have created our own checkbox component. By capturing the KeyDown and KeyUp events the checkbox steps through a string containing a list of the valid...
1
by: David Thielen | last post by:
Hi; When I display reports, if it's a text file I need to have a .txt extension. This got me thinking, what would seem most natural to users is if the url ended up being something like:...
10
by: Michael Maes | last post by:
Hi, I want to have a Button.Click event 'raise' a shortcut. If eg Button1 is Clicked, I want to have a shortcut 'CTRL + F12' activated. What's the best way to acchieve this. TIA, Michael
4
by: Steve | last post by:
Hi All I have a windows forms application written in VB.net 2005 which places a shortcut in All users desktop during installation, using MS setup and deployment Occasionally when a customer...
7
by: =?Utf-8?B?Vkg=?= | last post by:
Hi, all. Need help with what seems to be either connection, or threading problem in my ASP.NET 2.0 application. The gist of the problem is this: IHttpHandler in my application serves an HTML...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.