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

Add --timeout=N to customise timeout waiting for replies #76

Open
Cal-A opened this issue May 31, 2013 · 0 comments
Open

Add --timeout=N to customise timeout waiting for replies #76

Cal-A opened this issue May 31, 2013 · 0 comments

Comments

@Cal-A
Copy link

Cal-A commented May 31, 2013

Every time poclbm goes to check for strata, bitcoin-qt freezes for about twenty seconds, using 100% of one CPU core, before returning to work. By that point, poclbm's five-second timeout has elapsed and it gives up waiting. It doesn't seem to try again afterwards, so it's left in an infinite loop of poclbm waiting for work that never comes.

Would it be possible to either extend that timeout by default, or better yet, add the option to customise it on the commandline, please?

I've annotated a commandline output to hopefully explain what I mean better:

    31/05/2013 10:58:14, Setting server (XXXXXX @ 10.0.XXX.XXX:8332)
    10.0.XXX.XXX:8332 31/05/2013 10:58:51, checking for stratum...
(bitcoin-qt freezes here)
    10.0.XXX.XXX:8332 31/05/2013 10:58:56, no response to getwork, using as stratum
    10.0.XXX.XXX:8332 31/05/2013 10:59:06, Failed to subscribe
    10.0.XXX.XXX:8332 31/05/2013 10:59:08, IO errors - 1, tolerance 1
(bitcoin-qt unfreezes and would respond at this point if poclbm were still listening)
    10.0.XXX.XXX:8332 31/05/2013 10:59:18, Failed to subscribe
    10.0.XXX.XXX:8332 31/05/2013 10:59:20, IO errors - 2, tolerance 1
    10.0.XXX.XXX:8332 31/05/2013 10:59:20, No more backup pools left. Using primary and starting over.
    10.0.XXX.XXX:8332 31/05/2013 10:59:20, Setting server (XXXXXX @ 10.0.XXX.XXX:8332)
    10.0.XXX.XXX:8332 31/05/2013 10:59:30, Failed to subscribe
    10.0.XXX.XXX:8332 31/05/2013 10:59:32, IO errors - 1, tolerance 1
(these messages repeat ad infinitum)
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

1 participant