Skip to content

Improve connection timeout handling for SmtpConnectionPool#1986

Closed
matthiaso wants to merge 1 commit intoreleases/24.2from
features/matthiaso/24.2/improveConnectionTimeoutForSmtpConnectionPool
Closed

Improve connection timeout handling for SmtpConnectionPool#1986
matthiaso wants to merge 1 commit intoreleases/24.2from
features/matthiaso/24.2/improveConnectionTimeoutForSmtpConnectionPool

Conversation

@matthiaso
Copy link
Member

434975

@matthiaso matthiaso self-assigned this Feb 5, 2026
@matthiaso matthiaso force-pushed the features/matthiaso/24.2/improveConnectionTimeoutForSmtpConnectionPool branch from e4d0142 to 674fc47 Compare February 5, 2026 14:00
@matthiaso matthiaso requested a review from paolobazzi February 5, 2026 14:00
@Override
public Integer getDefaultValue() {
return 60; // 1 minute
return 20; // 20 seconds
Copy link
Member

Choose a reason for hiding this comment

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

Consider change the default value only for major release (e.g. 26/1)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe whole improvement only for 26/1 or 26/2?

Copy link
Member Author

Choose a reason for hiding this comment

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

New target release is 26/1 (for whole change for now)

public static class CloseIdleConnectionsJobScheduleProperty extends AbstractPositiveIntegerConfigProperty {
@Override
public Integer getDefaultValue() {
return 20; // 20 seconds
Copy link
Member

Choose a reason for hiding this comment

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

Consider change the default value only for major release (e.g. 26/1)?

Copy link
Member Author

Choose a reason for hiding this comment

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

New target release is 26/1 (for whole change for now)

@matthiaso matthiaso force-pushed the features/matthiaso/24.2/improveConnectionTimeoutForSmtpConnectionPool branch from 674fc47 to 8a8c187 Compare February 11, 2026 12:18
* Decrease default timeouts from 1 minute to 20 seconds
* RFC-conformity: Connection failures should be treated the same way 451
 errors are treated (hence treat 451 errors the same way connection
 failures are already treated)

434975
@matthiaso matthiaso force-pushed the features/matthiaso/24.2/improveConnectionTimeoutForSmtpConnectionPool branch from 8a8c187 to ad9e3e8 Compare February 11, 2026 12:20
@matthiaso matthiaso requested a review from paolobazzi February 11, 2026 12:20
@matthiaso
Copy link
Member Author

Replaced by #2014

@matthiaso matthiaso closed this Feb 18, 2026
@matthiaso matthiaso deleted the features/matthiaso/24.2/improveConnectionTimeoutForSmtpConnectionPool branch February 18, 2026 04:39
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