2
I Use This!
Very Low Activity

News

Analyzed 1 day ago. based on code collected 3 days ago.
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 ... [More] ->OpenHttpGet->OpenHttp->TCrtSocket.Open->THttpClientSocket.Create(0)I understand I can change HTTP_DEFAULT_RECEIVETIMEOUT to a different value, but I really don't want to change that default value.Is it an intentional design that mormot.net.client.HttpGet does not allow setting a non-default timeout?  @ab  Do you think it make sense to add an extra timeout parameter, so we can use a non-default value? [Less]
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 ... [More] , 'W', notif) then if fPending.Count = 0 then PollForPendingEvents({timeoutMS=}10); <-------- this call I remove all try\finally inside PollForPendingEvents but fpc_initialize\finalize still exists. Is this because of records in var block? [Less]