Merge branch '0.2.x'

This commit is contained in:
Luke Dashjr 2025-03-10 18:01:41 +00:00
commit 63d49aec8e
No known key found for this signature in database
GPG Key ID: A291A2C45D0C504A
2 changed files with 3 additions and 2 deletions

View File

@ -1174,6 +1174,7 @@ void *datum_api_thread(void *ptr) {
daemon = MHD_start_daemon(MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD, datum_config.api_listen_port, NULL, NULL, &datum_api_answer, NULL,
MHD_OPTION_CONNECTION_LIMIT, 128,
MHD_OPTION_NOTIFY_COMPLETED, datum_api_request_completed, NULL,
MHD_OPTION_LISTENING_ADDRESS_REUSE, (unsigned int)1,
MHD_OPTION_END);
if (!daemon) {

View File

@ -578,8 +578,8 @@ void *datum_gateway_listener_thread(void *arg) {
app->datum_active_threads = 0;
listen_sock = socket(AF_INET, SOCK_STREAM, 0);
if (!listen_sock) {
DLOG_FATAL("Could get socket: %s", strerror(errno));
if (-1 == listen_sock) {
DLOG_FATAL("Could not create listening socket: %s", strerror(errno));
panic_from_thread(__LINE__);
return NULL;
}