On 04.06.20 17:26, Gustaf Neumann wrote:
This sounds indeed related with the original problem.
The test registers a repeating proc (interval 1s),
but within in the time-range of 2.5s, it is executed
only once.
...
maybe i get on the weekend some access to a win environent.
i could use a windows machine over the weekend, but unfortunately,
this was very limited (windows 7, very small hd).
However, i was able to set everything up to be able to compile
NaviServer with msvc, but i was not able to run the regression tests
(path to long, etc.). When compiling with x64, there were many
warnings concerning the "sec" member in Ns_Time, which is
defined as long. Due to the memory model in windows 64
bit (LLP64) a long is there 32 bit, ... but an ns_time (e.g. the result
of time()) is 64 bit. This value is often supplied to the "sec" member.
So, i have modified the code to use "time_t" for the "sec" member,
... and many of the warnings disappeared.
Most other 64bit OS use LP64 (long is 64 bit), where assigning
time_t to long was not an issue.
This change will not solve all of the issues you are experiencing,
bit it might improve the situation for a few.
Background: The problem with LLP64 and using "long" for
sec is not new, many of the operations on Ns_Time were most
likely never working correctly under win64. But they started to
show up as a problem lately, since the newer code relies
more on this functions working correctly (among other things,
in the scheduler).
Hope that these changes helped a little.
all the best
-gn
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel