Fraunhofer-IIS / libjapi

libjapi is a universal JSON to C API library. It receives newline-delimited JSON (NDJSON) messages via TCP and calls registered C functions. A JSON response is returned for each request. Furthermore, it is also possible to create push services, which asynchronously push JSON messages to the clients subscribed to them.
MIT License
3 stars 1 forks source link

enable reuse of server socket #34

Closed fraunhofer-iis-bot closed 1 year ago

fraunhofer-iis-bot commented 3 years ago

In GitLab by @Michael-M-Baron on Jan 13, 2021, 10:30

After a server shutdown it can happen that the server socket gets into the TIME_WAIT state and it is no longer possible to use it again. This mechanism is part of the Kernel/TCP-Protocol and prevents possible package losts.

Since this is more of a theoretical problem, the server socket option could be adjusted adjusted with the SO_REUSEADDR flag to enable and ensure an instant reboot of the server after a shutdown.

fraunhofer-iis-bot commented 3 years ago

In GitLab by @Michael-M-Baron on Jan 13, 2021, 10:32

created merge request !56 to address this issue

fraunhofer-iis-bot commented 3 years ago

In GitLab by @Michael-M-Baron on Jan 20, 2021, 14:26

Problem is fixed.