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

DIG-1836: Fix Snyk vulnerabilities #82

Merged
merged 9 commits into from
Nov 29, 2024
Merged

DIG-1836: Fix Snyk vulnerabilities #82

merged 9 commits into from
Nov 29, 2024

Conversation

daisieh
Copy link
Member

@daisieh daisieh commented Nov 29, 2024

This one was more complicated because I had to replace the gevent library with an asynchronous requests thing: I went with aiohttp; it led to minimal changes, I think. You can test this on a local build by adding several of your own servers to the federation and then doing any sort of federation call with unsafe = True.

To really see that we are truly asynchronous, you can put in await asyncio.sleep(5) after line 306 in federation.py to make it pause before going on; you'll see that the total time for the federated call is on the order of 5 seconds and not 5 * (servers) seconds.

I also changed heartbeat so that it logs errors into the logger and not a separate internal file.

@daisieh daisieh requested a review from OrdiNeu November 29, 2024 06:23
Copy link
Contributor

@OrdiNeu OrdiNeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job 👍

@daisieh daisieh merged commit cb134f1 into develop Nov 29, 2024
1 check passed
@daisieh daisieh deleted the daisieh/updates branch November 29, 2024 17:34
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.

2 participants