#1 2025-03-19 07:51:50

Mobius1
Member
Registered: 2023-08-16
Posts: 11

Delphi 12.3 doing timeout error starting server

Using latest commit from Master, 10424 the THttpServerSocketGeneric is taking longer than the timeout to start, throwing error on line 4106 which is the  WaitStarted function. What should I do to fix this?

I am testing on IDE 64b on Delphi 12.3.

PS: The stable version of lts 2.3.8878 works without errors

Last edited by Mobius1 (2025-03-19 07:52:47)

Offline

#2 2025-03-19 09:10:30

Mobius1
Member
Registered: 2023-08-16
Posts: 11

Re: Delphi 12.3 doing timeout error starting server

There's a proposed fix for this:
instead of
endtix := mormot.core.os.GetTickCount64 + Seconds * MilliSecsPerSecSh1;

It should be
  endtix := mormot.core.os.GetTickCount64 + Seconds * MilliSecsPerSec;

so it would count 1000 milis per sec instead of 10 milis per sec and the server wouldn't throw timeout on start

Offline

#3 2025-03-19 09:37:11

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 544

Re: Delphi 12.3 doing timeout error starting server

I have the same observation


Rad Studio 12.3 Athens

Offline

#4 2025-03-19 11:00:56

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 544

Re: Delphi 12.3 doing timeout error starting server

Sry i must correct me, I changed above line without effect. Make new Ticket for my problem


Rad Studio 12.3 Athens

Offline

#5 2025-03-19 15:28:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,955
Website

Re: Delphi 12.3 doing timeout error starting server

Oups... this explains some of my errors on slow machines during regression tests.

Please check
https://github.com/synopse/mORMot2/commit/a2783bb92

Offline

Board footer

Powered by FluxBB