[Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4
Benoît Minisini
benoit.minisini at gambas-basic.org
Sat Sep 30 00:42:45 CEST 2023
Le 30/09/2023 à 00:20, Christof Thalhofer a écrit :
> Am 29.09.23 um 15:06 schrieb Benoît Minisini:
>
>> I asked because I tried a simple loop that does an HttpClient.Get() 8192
>> times. It eats a bit of memory if I don't call the event loop, because
>> some stuff is freed only during it. But if I call 'Wait' after each
>> request, I have no memory leak.
>
> I tried. 'Wait' didn't help. On my VM it crashes after 159 loops.
>
> What does the debugger show on the right side of MIB? The stack size?
> This was what i was talking about (it was exactly 8191 when the program
> on my main machine crashed, on the VM it is exactly 1022).
No, it's the number of opened file descriptors.
You get a file descriptor leak. But I don't have it when I tried my
simple HttpClient.Get() loop.
--
Benoît Minisini.
More information about the User
mailing list