We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I'm trying to use gateway's AsyncPush and I replaced gateway.Push() in sample_client.cc with async one like this.
std::future<int> returnCodeFuture = gateway.AsyncPush(); std::future_status status = returnCodeFuture.wait_for(std::chrono::seconds(10)); if (status == std::future_status::timeout) { std::cout << "push gateway timeout "; } else if (status == std::future_status::ready) { int returnCode = returnCodeFuture.get(); if (returnCode != 200) { std::cout << "push counter to pushgateway failed " << "return code is: " << returnCode; } std::cout << "returnCode is " << returnCode << std::endl; }
But when I executed this code, I got a segment fault. I don't know why. Is there any examples about asyn push that can work?
The text was updated successfully, but these errors were encountered:
I can reproduce it and will take a look.
Sorry, something went wrong.
@AndyRao please test #273
@gjasny test pass
5d7f4b2
No branches or pull requests
Hi
I'm trying to use gateway's AsyncPush and I replaced gateway.Push() in sample_client.cc with async one like this.
But when I executed this code, I got a segment fault. I don't know why. Is there any examples about asyn push that can work?
The text was updated successfully, but these errors were encountered: