#1 Re: mORMot 1 » THttpAPIServer MuitiThread Clones » 2017-09-28 14:58:55

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

#2 mORMot 1 » THttpAPIServer MuitiThread Clones » 2017-09-28 14:53:58

MagoSchmidt
Replies: 2

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!

#3 Re: mORMot 1 » THttpApiServer Virtual Directory » 2017-09-28 14:22:12

Well, I was intending to use only THttpApiServer. TSQLHttpServer has features that I do not need now....

Anyway, my "manual mapping" works well. Thank you very much for reply

#4 mORMot 1 » THttpApiServer Virtual Directory » 2017-09-24 13:02:56

MagoSchmidt
Replies: 2

Hi, All

What is the simplest way for me to implement "Virtual Directories" (like IIS) using THttpApiServer?

Sample "09 - HttpApi web server" works great serving static files. Now I need the same using "virtual directories"

Nowadays I'm writing a THttpServerRequest.OnRequest handler and mapping these "virtual directories" to real ones....Is there any other way?

Thaks in advance!

#5 Re: mORMot 1 » Javascript authentication » 2017-08-21 09:46:17

I think this is not related with javascript authentication, but with server side authentication. When I started using javascript authentication I faced similar problems until really understand how authentication at server side works. I use "interface based" mode and faced this problem when implementing OnAuthenticationUserRetrieve....

Board footer

Powered by FluxBB