Skip to content

fix: add SMTP connection timeout - #36

Open
PeterKruithof wants to merge 1 commit into
masterfrom
fix/smtp-timeout
Open

fix: add SMTP connection timeout#36
PeterKruithof wants to merge 1 commit into
masterfrom
fix/smtp-timeout

Conversation

@PeterKruithof

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • dotnet build — 0 errors
  • 1-line config change, no behavioral test needed
  • Verify SMTP operations time out after 10s when server is unreachable

🤖 Generated with Claude Code

Prevents SmtpEmailService from hanging indefinitely when the SMTP server
is unreachable. MailKit's Timeout applies to Connect, Authenticate, and Send.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧬 Mutation Testing

Metric Value
Score 54.8% 📈 (+6.85% vs baseline)
Killed 347
Survived 161
No Coverage 126
Timeout 1
What does this mean?

Stryker mutates your code (flips conditions, removes lines, changes values) and runs tests against each mutation. Killed = tests caught it (good). Survived = tests missed it (weak spot). No Coverage = no test touches this code.

Download the full HTML report from the Artifacts section below for per-file details.

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.

Missing timeout on SMTP connections — can hang indefinitely

1 participant