Clovel/RESTServer

Failed to create socket

Opened this issue · 0 comments

Describe the bug
This project is used by the OSCO-OD-Gen project. This bug comes from there : Clovel/OSCO-OD-Gen#46.

When launching the generator back-end, we can sometimes end prematurely with the following error log :

[ERROR] <RESTServer::open> Failed to create socket

This error occurs randomly. It seems it occurs more often hen launching the back-end several times successively.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout main branch
  2. Build the project in ./build
  3. Try to launch the generator back-end
  4. See error

Expected behavior
Instead of the error log, we should get the following log :

[INFO ] Listening for request at: localhost:4000/OSCO-OD-Gen

Desktop (please complete the following information):

  • OS: macOS Catalina 10.15.4 19E287 x86_64