Skip to content
New issue

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

Can reply object be resused ? #47

Open
aidevr opened this issue Nov 2, 2016 · 2 comments
Open

Can reply object be resused ? #47

aidevr opened this issue Nov 2, 2016 · 2 comments

Comments

@aidevr
Copy link

aidevr commented Nov 2, 2016

I am running multiple commands and reusing reply object sometimes i find abnormal behavior e.g.

command t = command("SET") << "foor" << "bar" ;
reply myreply = conn->run(t);

t = command("GET") << "foor";
myreply = conn->run(t);

@luca3m
Copy link
Owner

luca3m commented Nov 2, 2016

It should be possible, what's the weird behaviour you get?

@aidevr
Copy link
Author

aidevr commented Nov 3, 2016

I'm actually using the output of first reply as input of another....if I send burst... sometimes these values get mixed

t = command("GET") << "foor";
myreply = conn->run(t);

t = command("SET") << "foor" << myreply.str(); --> Sometimes i get actualy value.. sometimes its empty.sometimes its OK ......and this is a simple example ..running 4,5 command using a single reply object
myreply = conn->run(t)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants