David Rose wrote:

> Ok, thanks, but is there any reason why the processing of the
> delivery of the file takes place in the OnTerminate event, rather
> than at the end of the execute method i.e after the call to the
> lengthy process. 

The component (derived from TWSocketServer) is designed to run
socket IO in context of a single thread. That's possible since ICS
uses non-blocking winsock API. If you do not have to serve more than
around 100-200 clients on a multi-processor system all _pumping data 
concurrently at the same time_ the application won't benefit from
multiple socket threads.
Only if socket IO actually was a bottleneck it might make sense
to use a different thread design, something like around 100 
clients per thread, for example. 

Arno Garrels

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

Reply via email to