2
I Use This!
Low Activity

News

Analyzed 1 day ago. based on code collected 3 days ago.
Posted about 4 years ago by ab
TSynDictionary uses TDynArrayHashed internally for the keys, and TDynArray for the values.It is thread-safe, and features an optional timeout to deprecate old entries, and has a lot of low-level methods, including advanced searches or serialization.
Posted about 4 years ago by ab
Did you search a little bit? It is explained in the doc and source code of TAuthUser.When you set the password, you can use not the property but directly this method:procedure TAuthUser.SetPassword(const aPasswordPlain, aHashSalt: RawUtf8; ... [More] aHashRound: integer);It will allow to customize the salt, and change the algorithm/round to use safer PBKDF2_HMAC_SHA256 algorithm for hashing.There is no difference on server side: the hash is just stored and checked.The hashing method should just be consistent on client side. [Less]
Posted about 4 years ago by ab
Nice solution!Please try https://synopse.info/fossil/info/1b83fb28f4
Posted about 4 years ago by ab
I have added ZIP64 support to mormot.core.zip.pas - i.e. mORMot 2.Check https://github.com/synopse/mORMot2/comm … c599fe7d58This is a huge rewrite of the functions, because ZIP64 is really a tricky/hacky format to implement.A picture is always better to understand it - so thanks to https://blog.yaakov.online/zip64-go-big-or-go-home/ for its help!
Posted about 4 years ago by L_VV
Arnaud, now everything compiles without errors Through FPCupDeluxe, Lazarus is successfully updated to the trunk version.The full "Clean Up and Build" is also executed without errors, even with an open project using mORMot2.Thank you very much!
Posted about 4 years ago by ab
It may be the case.Check the logs, especially the IP address.
Posted about 4 years ago by kitty80
Do you mean TextPositioning parameter in RenderMetaFile function?I've tried using RenderMetaFile with the full parameter set, adjusting the 2 kerning parameters, but none of them works as I expected.
Posted about 4 years ago by sakura
ab wrote:1. You need to download the latest static from https://github.com/synopse/mORMot2/rele … ite.3.34.1 I thought, I did :-o Only unpacked, but forgot to move... ab wrote:2. TExecutable is not serializable for sure.It was never meant to.There ... [More] is an embedded class field - TFileVersion - which prevents JSON Serialization. My bad, but would have been cool to use directly for mustache ;-)Thanks,Daniel [Less]
Posted about 4 years ago by mdbs99
So, Zeos will require mormot always?I wouldn't say always, but if Zeos needs mORMot, this code should be provided from a package.
Posted about 4 years ago by songshuang
I'm building on mormot.net.async.pas's network architecture.The main changed in mormot.net.async.pas is:The function of checking idle put in a single thread. because you put it to after ProcessWrite(30000) line,when a client is onlie ,Checking idle ... [More] function will happen per 30 sec.When a client accepted,will create a connction and fClients.Start(connection) at once.I founded that error will be occurred when active close a connectionMy code is:procedure TAsyncConnections.IdleEverySecond; ... fConnectionLock.Lock; try for i:=0 to fConnectionCount-1 do begin aconn := fConnection[i]; allowed := UnixTimeUtc - aconn.fCanIdleLen; if aconn.fLastOperation < allowed then begin IdleArr.Add(aconn.handle); ... for i:=0 to High(IntegerArr) do ConnectionRemove(IntegerArr[i]); end;Now the following error can occurred(under about 250 wifi's-thermostats connections,ubuntu)EXCOS EAccessViolation (04) [MQTTSvrTAConnectionspseRead] at 6d8036 ../../SysDataManager/mORMot2/src/net/mormot.net.sock.posix.inc tpollsocketepoll.waitformodified (655) ../../SysDataManager/mORMot2/src/net/mormot.net.sock.pas pollandsearchwithinpending (1513) ../../SysDataManager/mORMot2/src/net/mormot.net.sock.pas tpollsockets.getone (1556) src/MqttServer/mormot.net.async_rw.pas tpollasyncsockets.processread (652) src/MqttServer/mormot.net.async_rw.pas tasyncconnectionsthread.execute (904) EXC EInvalidCast {Message:"Invalid type cast"} [MQTTSvrTAConnectionspseRead] at 617b04 src/MqttServer/mormot.net.async_rw.pas tasyncconnectionssockets.onclose (816) src/MqttServer/mormot.net.async_rw.pas closeconnection (639) src/MqttServer/mormot.net.async_rw.pas tpollasyncsockets.processread (684) src/MqttServer/mormot.net.async_rw.pas tasyncconnectionsthread.execute (904) No error founded on windows ,when one or two client connected.I try to do in version 1.18 or 2,the above error will happen aslo.How to active close a coneection?Please help me or some suggestions. [Less]