Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / January 2006

Tip: Looking for answers? Try searching our database.

HttpListener simultaneous connections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
googlegroups@denisbider.com - 20 Jan 2006 22:57 GMT
Hello everyone,

I need a new web server for our existing website and I don't want
subscribe to the whole IIS way of doing things. I thought I would
implement a custom web server using the new HttpListener interface to
HTTP.SYS.

However, I found after playing with HttpListener that it seems to
completely block all handling of incoming requests from the same IP
address while a response to that IP address is outstanding. For
example, if I do the following:

 System.IO.Stream respStream = context.Response.OutputStream;
 foreach (byte b in buffer)
 {
   respStream.WriteByte(b);
   Thread.Sleep(500);
 }
 respStream.Close();

I can see the a, b, c, d, ... characters appear properly in my browser.
However, for as long as this response is outstanding, any other
requests from the same IP address will be queued and not passed to my
application.

I reproduced this result on Windows XP SP2 as well as on Windows 2003
Server.

Does HttpListener have a limit of 1 simultaneous pending request for
each individual client? If so, how can we get rid of this limit? It is
completely unviable for our website to allow only 1 simultaneous
connection at a time. A website visitor needs to be able to have
multiple downloads running at a time, and they need to be able to
browse the website while they are downloading. We need to permit at
least 4 pending responses simultaneously.

Is there any way we can use HttpListener to do this?

Best regards,

denis
googlegroups@denisbider.com - 20 Jan 2006 23:11 GMT
Hey - I just found that it works fine with Internet Explorer, whereas
all my previous tests were with Mozilla Firefox!

Could it actually be _Mozilla_ that waits for the first web page to
load completely before even sending a request for the other web
page...? And why would it do that?

Regards!

denis

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.