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 a timeout to symbol downloads #301

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Conversation

Gankra
Copy link
Collaborator

@Gankra Gankra commented Nov 18, 2021

This also introduces a --symbol-download-timeout-secs flag to minidump-stackwalk
so it's configurable. The default is 1000 seconds (which for a 300MB .sym file
requires a connection speed of 300KB/s).

Weirdly I think adding the timeout at all seems to unstick the download, but I'm
not sure. Either way you can tune the value to your needs.

Fixes #300

@Gankra
Copy link
Collaborator Author

Gankra commented Nov 18, 2021

Surprisingly this timeout not only unblocks mdsw, but it also successfully resolves the file?? Maybe we're getting a truncated version or it just gets loopy at the EOF. Either way we manage to parse the symbols and run the cfi, which is neat.

@gabrielesvelto
Copy link
Collaborator

Surprisingly this timeout not only unblocks mdsw, but it also successfully resolves the file?? Maybe we're getting a truncated version or it just gets loopy at the EOF. Either way we manage to parse the symbols and run the cfi, which is neat.

I love it when things work and we don't know why 😏

This also introduces a --symbol-download-timeout-secs flag to minidump-stackwalk
so it's configurable. The default is 1000 seconds (which for a 300MB .sym file
requires a connection speed of 300KB/s).

Weirdly I think adding the timeout at all seems to unstick the download, but I'm
not sure. Either way you can tune the value to your needs.

Fixes rust-minidump#300
@Gankra
Copy link
Collaborator Author

Gankra commented Nov 18, 2021

New version, more robust, more confusing

@Gankra Gankra merged commit b9c0a52 into rust-minidump:master Nov 18, 2021
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

Successfully merging this pull request may close these issues.

breakpad-symbols: Add a bandwidth/time limit to symbol downloading
2 participants