473,320 Members | 1,870 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,320 software developers and data experts.

HttpListener simultaneous connections

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

Jan 20 '06 #1
1 5084
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

Jan 20 '06 #2

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

Similar topics

3
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50...
1
by: Semaj | last post by:
Environment: DB2 8.1.4; Windows 2000 We are evaluating the feasibility of upgrading our production DB from 7.2 to 8.1. During this process we've encountered an error when starting our...
5
by: Nikolay Petrov | last post by:
1. Can I use SSL for my web services? 2. How can implement some kind of security to my web services? My idea is to implement some kind of licensing or user/password authentication for an web...
12
by: Dan V. | last post by:
Since an ASP.NET/ADO.NET website is run on the server by a single "asp_net worker process", therefore doesn't that mean that even 50 simultaneous human users of the website would appear to the...
1
by: Simon | last post by:
Is there HTTP connection limit of 2 simultaneous connections in webservices? For example what hapens if you use webservices form ASP.NET web application? Presumably ASP.NET is webservices client to...
2
by: datbenik | last post by:
How can i write a program that supports simultaneous multipart download. So i want to open multiple connections to download one file. Is this possible. If so, how?
10
by: cdngo | last post by:
Hi all, I'm new with DB2 database, and working on AIX 5.2 with DB2 v8 Just a question regarding the similaneous connection. I'd like to know how many simultaneous connections that I have in a...
5
by: cmercier | last post by:
Hi everyone! I am using the Prototype library and ran into a serious limitation. I need to make many concurrent AJAX calls to the server, but Prototype is queueing them instead. Obviously,...
4
by: elyob | last post by:
Not really tried going two ways at once, but I have an include_once connection to a mysql_database, now I need to retrieve info from a second mysql_database .. My mysql_connects are getting...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.