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

Danger! Re-sends RPC call on failure #44

Open
ProWagerSystems opened this issue Jun 8, 2019 · 4 comments
Open

Danger! Re-sends RPC call on failure #44

ProWagerSystems opened this issue Jun 8, 2019 · 4 comments

Comments

@ProWagerSystems
Copy link

I almost deployed with this library and did a final test and found a problem. Guzzle returned this error (for no discernible reason, but thats not the point of this report): Recv failure: Connection was reset (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

The problem is that this library for some reason re-sent the transaction a second later during the same function call, so it double-sent the coins AND threw an error to top it all off.

You can reproduce this yourself I've wasted too much time already... Just force that error to occur when sending coins and see what happens.

@pipizdos
Copy link

pipizdos commented Jul 8, 2019

there is no code for make double requests, can you post your source?

@ProWagerSystems
Copy link
Author

I suspect it had to do with queuing and the message stack... with a failure it would post the same message again, which is dangerous if you're sending bitcoins to a customer. I've since rewritten and finished the project with a much simpler Guzzle-free library. Sorry I can't provide a code sample, free free to close this issue.

@denpamusic
Copy link
Owner

Sorry for long wait, was not been able to spend any time on this project lately. Glad that you've been able to sort the problem with different library. I'll take a look into this, try to replicate the issue and report it upstream to guzzle project. I don't really want to drop guzzle because of it's support for async requests and because I mostly use this library together with laravel framework which pulls guzzle anyway.

@Filingito
Copy link

Has this issue been fixed? Was it really an issue or a user error?

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

4 participants