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

Use a larger, dedicated threadpool for media sending #17564

Merged
merged 3 commits into from
Aug 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix linting on olddeps
erikjohnston committed Aug 13, 2024
commit 35c45b5394ec93e164bd9afef95ab13db40095ae
2 changes: 1 addition & 1 deletion tests/server.py
Original file line number Diff line number Diff line change
@@ -1167,7 +1167,7 @@ async def validate_hash(p: str, h: str) -> bool:
hs.get_auth_handler().validate_hash = validate_hash # type: ignore[assignment]

# We need to replace the media threadpool with the fake test threadpool.
def thread_pool() -> threads.ThreadPool:
def thread_pool() -> threadpool.ThreadPool:
return reactor.getThreadPool()

hs.get_media_sender_thread_pool = thread_pool # type: ignore[method-assign]
Loading