Closed pp23 closed 6 years ago
Is the server you are running Simple-Web-Server? I see only client code above by the way:) Also, in case it is related, which OS are you on?
The server is a Simple-Web-Server and the code runs on a linux machine. The issue also comes up when no server gets started. The code above is really enough to get the bug reproduced. Maybe the ioservice has some conflict with the ioservice of the cucumber-server. But I think the problem was within boost because with an update of boost from 1.64 to 1.66 the issue does not occur anymore.
I have the following initial test cases implemented which will be executed by cucumber-cpp:
When I run the tests cucumber immediately looses the connection because the server (code above) stops its execution with the following print out: accept: Already open I have read here https://stackoverflow.com/questions/10728802/how-to-get-rid-of-accept-already-open-exception-in-boostasio-server that this comes from boost::asio-sockets. But I don't understand why it comes up already on initialization of the client although it only initializes host and port members. Can you imagine where and why boost::asio prints out the error? I could bet that boost::asio gets struggled with the boost::asio::socket which cucumber-cpp uses to open the server.