Hello,
I am currently trying to implement a HTTP file streaming server using
tHttpServer and I'd like to know if anybody has some advice regarding
the use of threads.
I know that it's basically possible to use tHttpServer without threads
but I suppose that threads are needed in my case because
So thanks for your comments and I suppose that I will start with a pure
asynchronous implementation of my HTTP server application. Probably I
will switch to thread pools in a later phase to make full use of
multi-core CPUs which are so common these days.
Yes, multi-core CPU are interesting,
Francois PIETTE wrote:
About your changes: It's sure that using FreeAndNil is a good idea.
Checking
Assigned(GWndHandlerPool) is also good but be aware that this would hide
the
exception and still may produce unexpected results since the lock is no
more
used. If you some reason a thread
Olivier Sannier wrote:
I'll try to figure out a way to do this and will submit a patch when I
get it working properly.
Ok, figured it out quite easily. Please see the proposed patch at the
end of this message.
The only question is whether or not I could have read GWndHandleCount
directly
Hi Tobias,
Using thread to do file I/O is not interesting.
Given the event driven nature of ICS, the file is read one block at a time
without using CPU nor blocking the HTTP server thread. There is problem
delivering many files simultaneously.
A thread is interesting mainly when you have to use
Hi,
I just discovered that overridden has been misspelled in a number of
places throughout ICS where it was written with one d. But in proper
English, it should take two ds. I know that most authors of ICS do not
have English as their native language, and this is not a big deal, but
now that