Hello Bjørnar,

We do multi-threading by modifying WSocketS.pas and on top of it, 
HttpSrv.pas. There is no easy way to do it otherwise. I remember I uploaded 
my HTTPMTServer pascal code to http://www.fastream.com/ics sometime ago.. 
Basically what it does is to move the creation of TWSocket instance to the 
worker thread and use both thread and TWSocket pooling.

I am very tired now and do not have much time either. But I would be happy 
to help (amateur/professional).

Best Regards,

SZ

----- Original Message ----- 
From: "Bjørnar Nielsen" <[EMAIL PROTECTED]>
To: "'ICS support mailing'" <twsocket@elists.org>
Sent: Thursday, November 30, 2006 6:39 PM
Subject: [twsocket] Httpserver and multithreading


If I want to have a http-server with support for very many connections and
high performance. My understanding is that this can be achieved by spreading
the connections to several threads. For example 200 connections in one
thread, 200 more in the next ect.

How can this be done?
One thread where where the http-server-component is, acepting connections.
Then in OnClientConnect use detach on this thread, and atach the connection
in another thread?

I want to stay away from critical sections and use message-posting for
communication between threads.

If I transfer a connection to another thread, must the connection be taken
over by another http-server-component in that thread?

Anyone have some thoughts on this? Or maybe examples?

Regards Bjørnar
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to