chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] microhttpd bindings and FFI


From: Massimo Nocentini
Subject: [Chicken-users] microhttpd bindings and FFI
Date: Mon, 25 Mar 2019 15:56:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Dear list,

this is my first message so I take the opportunity to greet everyone.

I'm working on a minimal set of bindings [1] for the microhttpd library [2] and I'm heading against the following error:

[panic] callback invoked in non-safe context - execution terminated

To set the context: the variadic function MHD_start_daemon starts the server to accept connection and calls back a Scheme function that provides the content to the client. I use the *bind* egg to generate the FFI although I tried the manual implementation via `(chicken foreign)` also, getting the same outcome. Can I ask help on this? The repository holds within the folder ./src a file microhttpd.scm that should contain the bindings; on the other hand, the file hello-world.scm contains a simple example taken from the official tutorial of the microhttpd project.

Thanks in advantage, cheers,
-massimo

[1]: https://github.com/massimo-nocentini/chicken-microhttpd
[2]: https://www.gnu.org/software/libmicrohttpd/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]