#1 2017-09-28 14:53:58

MagoSchmidt
Member
Registered: 2017-07-21
Posts: 5

THttpAPIServer MuitiThread Clones

Hi, All

I'm implementing a HTTP server using THttpAPIServer. In my first experience (based on sample 09 - HttpApi web server) I noticed that server behaves like 'mono-thread' (Second request allways waits for the first request to end).

Searching on forum I saw that we need do "clone" THttpAPIServer instance in order for everything works "multi-threaded" as expected!

Unfortunately, I did not find any sample showing how to do that! Does anyone have one?

Thanks in advance!

Offline

#2 2017-09-28 14:58:55

MagoSchmidt
Member
Registered: 2017-07-21
Posts: 5

Re: THttpAPIServer MuitiThread Clones

Well, Everything I did was put an .Clone(256) after creating HttpAPIServer. Hope this was enough! :-)

Last edited by MagoSchmidt (2017-09-28 14:59:19)

Offline

#3 2017-09-28 17:55:20

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: THttpAPIServer MuitiThread Clones

Yes, it should be enough.

Offline

Board footer

Powered by FluxBB