Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: improve http connection pooling for smtp notifications#20605

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kacpersaw wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromkacpersaw/scaletest-notifications-smtp-tuning

Conversation

@kacpersaw
Copy link
Contributor

@kacpersawkacpersaw commentedOct 31, 2025
edited
Loading

This change updates how SMTP notifications are polled during scale tests.

Before, each of the ~2,000 pollers created its own http.Client, which opened thousands of short-lived TCP connections.
Under heavy load, this ran out of available network ports and caused errors likeconnect: cannot assign requested address

Now, all pollers share one HTTP connection pool. This prevents port exhaustion and makes polling faster and more stable.
If a network error happens, the poller will now retry instead of stopping, so tests keep running until all notifications are received.

TheSMTPRequestTimeout is now applied per request using a context, instead of being set on thehttp.Client.

@kacpersawGraphite App
Copy link
ContributorAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@kacpersawkacpersaw marked this pull request as ready for reviewOctober 31, 2025 10:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ethanndicksonethanndicksonAwaiting requested review from ethanndickson

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

At least 1 approving review is required to merge this pull request.

Assignees

@kacpersawkacpersaw

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kacpersaw

[8]ページ先頭

©2009-2025 Movatter.jp