Synchronous client request calls is now safe to use concurrently

This commit is contained in:
eidheim 2017-07-07 17:16:53 +02:00
commit fd764d908c
4 changed files with 56 additions and 7 deletions

View file

@ -237,7 +237,6 @@ int main() {
if(!ec)
cout << response->content.rdbuf() << endl;
});
client.io_service->reset(); // needed because the io_service has been run already in the synchronous examples
client.io_service->run();
server_thread.join();