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

Changed get_data() to automatically reconnect client #27

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Conversation

blupants
Copy link
Collaborator

Added self.connect() call to all get_data() functions. It will re-instantiate a new client in the case the connection is lost.

This PR is related to this issue.

The scan may take longer for large sites (4 hours+) and the connection with the client might eventually timeout or be lost. This PR changes the get_data() function to check whether or not the client connection is still active. In the case the connection is lost, it will try to reconnect the client before trying to pull more data.

…tantiate a new client in the case the connection is lost.
@blupants blupants self-assigned this Aug 22, 2024
@blupants blupants merged commit 716feae into main Aug 25, 2024
2 checks passed
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.

1 participant