cesanta / mongoose

Embedded Web Server
https://mongoose.ws
Other
11.16k stars 2.73k forks source link

Support for passing listening sockets to Mongoose #2913

Closed MattK2K4 closed 1 month ago

MattK2K4 commented 1 month ago

My goal is to bring systemd socket based activation to an project using mongoose. For that its necessary for the webserver/mongoose to listen on an existing socket. I saw that is functionality was available in previous versions of mongoose. In the current version all connect functions seem to require a URL as an argument and therefore create the socket themselves.

My question is: Is there still a way to start mongoose with an existing socket (e.g. by passing the filedescriptor)?

scaprile commented 1 month ago

Please see our documentation, and follow the guidelines in our tutorials. You'll see there is no function for that. Your link is from 2013. Mongoose has strongly oriented towards embedded since then. Perhaps you'd want to join #2812 or propose how to do that on a feature request. Since this is not a Mongoose issue, I'm closing this.