[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug?] Stack Overflow with callback from external library


On 3/17/24 15:56, Benoît Minisini wrote:
Le 17/03/2024 à 20:19, T Lee Davidson a écrit :
On 3/17/24 15:06, Benoît Minisini wrote:
It can't work as soon as libmicrohttpd tries to run the callback in multiple threads. Gambas interpreter can only work in one same thread.

Okay. Well, at least I'm consistent :-)

The only option I have then is to use external sockets polling (MHD creates no threads, event loop is fully managed by the application). And, I'm going to have to figure out how to do that.

Thank you, Benoît.



Someone should make a component from that library, to replace 'gb.http'...


That is what I had in mind. But, it's much more complex for me now. As yet, I have no clue how to implement external sockets polling.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: [Bug?] Stack Overflow with callback from external libraryT Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
[Bug?] Stack Overflow with callback from external libraryT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: [Bug?] Stack Overflow with callback from external libraryBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: [Bug?] Stack Overflow with callback from external libraryT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: [Bug?] Stack Overflow with callback from external libraryBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>