473,320 Members | 1,861 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.

Webserver

This is really a design question..

I'm writing a HTTP server as a little TCP exercise.. The way of handling
the connections i've drempt up involves invoking a new thread each time
a tcp client wants to connect. Since theres a 25 thread limit on the
framework this doesn't sound a clever idea. Any other ideas?

Simon.
Nov 15 '05 #1
2 1185
Simon Johnson <ck***@hotmail.com> writes:
framework this doesn't sound a clever idea. Any other ideas?


You could try using async sockets instead of threads.

--
Lawrence "Rhymes" Oluyede
http://loluyede.blogspot.com
Nov 15 '05 #2
Simon Johnson <ck***@hotmail.com> wrote:
This is really a design question..

I'm writing a HTTP server as a little TCP exercise.. The way of handling
the connections i've drempt up involves invoking a new thread each time
a tcp client wants to connect. Since theres a 25 thread limit on the
framework this doesn't sound a clever idea. Any other ideas?


Aside from Lawrence's reply, where do you get the idea that there's a
25 thread limit on the framework? The ThreadPool has a limited number
of threads, but that's not the framework itself being limited.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #3

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

Similar topics

12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
7
by: TCDolphin. | last post by:
Hi everyone, I'm currently developing an intranet application for a company and I have an informative question about the webserver. Before users can access a certain webpage they must identify...
0
by: Jakob Lithner | last post by:
I use VS 2005 and ASP.Net. For conveniance I use the inbuilt webserver, but recently I have encountered a lot of problem. When I debug it sometimes takes extremely long time to launch the...
1
by: Owen Blacker | last post by:
Apologies, first of all, for the cross-posting. I'm getting WebDev.WebServer.exe crashing all the time at the moment, despite having done a Detect and Repair with Visual Studio 2005, but I guess...
2
by: ¥|¥J | last post by:
Dear all, Please help~~ I have a problem in connecting my new FC5 webserver (apache 2.2 + php 5.1.4) to a few database servers through the PHP scripts (RH9, FC2, FC3). I have set host...
2
by: prakharv | last post by:
Hi All, I would like to unsderstand how POST data is sent from Web Browser to a Webserver esp when we try to upload a file to a server from HTML page. And how webserver decodes that...
1
by: swissclash79 | last post by:
Good morning everybody I have a question regarding configuring mappings in the development webserver. I am currently implementing a proxy server that is lied between the clients and a customer's...
1
by: Tina | last post by:
At my old company we used to put the IIS web server, containing our asp and asp.net websites, in the DMZ and the database on a machine that was behind the firewall. In this scenario we knew we...
1
by: mpc | last post by:
hello, how does one run a PHP page with a python webserver? Lets say i have a simple python web server running /path/webserver.py #!/usr/bin/env python from BaseHTTPServer import HTTPServer...
6
by: lawpoop | last post by:
Within a php file, how can you tell if it's being called by the webserver, or by the cli? I have some pages that I developed to be served, but now we want to run some of them as cron jobs. I...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.