#1 2017-12-22 15:18:22

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Multithread problem with THttpServerResp

We use a THttpServer.onStop handler to release resources in the same thread it's created. Everything OK in HTTP API server, but in case of Socket server I found what THttpServerResp inherite an onTerminate handler from Server - see here.
But THttpServerResp is created/destroyed for every response, so THTTPServer.OnTerminate called for every response.
Is it possible to remove this line of code? (I think this is bug, not feature)

Last edited by mpv (2017-12-22 15:18:50)

Offline

#2 2018-01-09 14:25:05

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Multithread problem with THttpServerResp

[Solved] Actually everything OK on the THttpServer.onStop. My real problem described here

Offline

Board footer

Powered by FluxBB