forked from Ocean/datum_gateway
Merge branch '0.2.x'
This commit is contained in:
commit
63d49aec8e
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user