Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Sep 25, 2024

  • Further follow-up to Execute email sending in its own zone. #8047 in the context of Unhandled exception when SMTP sockets are closed #8032.

  • The first commit is only refactoring and generalizing the gmail relay email sender logic: abstracting the connection, the sending and its lifecycle handling.

  • The second commit fixes the in-zone unhandled exception interception by using a Completer + microtask to have a coordinated path for in-request regular result or exceptions, while also tracking out-of-request async errors and invalidating the connection when such happens. (Verified by tests).

@isoos isoos requested review from jonasfj and sigurdm September 25, 2024 08:35
@isoos isoos merged commit 227bbf1 into dart-lang:master Sep 25, 2024
@isoos isoos deleted the fix-email-zone branch September 25, 2024 11:40
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