Posted
over 3 years
ago
by
ab
Please check https://github.com/synopse/mORMot2/commit/17d2f4cb
|
Posted
over 3 years
ago
by
wxinix
@tbo Thank you for the heads up.I am looking at mormot.net.client.HttpGet function, which does not provide a parameter for setting connection time out. Internally, HttpGet
|
Posted
over 3 years
ago
by
htits2008
mpv wrote:
htits2008 wrote:Hi,mpv! Can you share a Complete example ?
Please, see real life project sources here
Thank's mpv!I think I find a node.js by freepascal. you are nice!
|
Posted
over 3 years
ago
by
ab
You are right.CharToOemBuffW() is really a broken API.Please check https://github.com/synopse/mORMot2/commit/2a451227I guess that using + 1 to include the ending #0 is better than InitZero since we need only a single #0 at the right position.This is what https://cpp.hotexamples.com/examples/-/ … c-177,,183, does.
|
Posted
over 3 years
ago
by
wxinix
ab wrote:Yes, please try https://github.com/synopse/mORMot2/commit/3253bf05
That fixed it.Thank you.
|
Posted
over 3 years
ago
by
dcoun
ab wrote:
I have just fixed this sample, and tested it with PostgreSQL.Please check https://github.com/synopse/mORMot2/commit/779ad860
Seems to work fine by now.
Thank you @ab
|
Posted
over 3 years
ago
by
ab
This GraphQL parser is well written anyway, and could used as reference for sure.
|
Posted
over 3 years
ago
by
mpv
htits2008 wrote:Hi,mpv! Can you share a Complete example ?
Please, see real life project sources here
|
Posted
over 3 years
ago
by
ab
I can't reproduce it here.On which line does exactly the AV occur?
|
Posted
over 3 years
ago
by
mpv
Still 3% CPU for idle server with latest sources.I profile using valgrind - most CPU time spends on internal fpc_initilize\fpc_finalize what wraps PollForPendingEvents function THTTPAsyncServer.Execute
if fAsync.fClients.fWrite.GetOne(1000
|