Skip to content

resetConnectionPoolMaxSize resets the core pool size #696

Closed

Description

@bbottema

Problem

MailerGenericBuilder.resetConnectionPoolMaxSize() currently delegates to withConnectionPoolCoreSize(DEFAULT_CONNECTIONPOOL_MAX_SIZE).

As a result, calling it changes the core pool size to 4 and leaves the configured maximum unchanged, contrary to the public API contract.

Expected behavior

resetConnectionPoolMaxSize() should restore only the maximum pool size to DEFAULT_CONNECTIONPOOL_MAX_SIZE, leaving the configured core size untouched.

Activity

  1. added this to the v9.1.8 milestone on Aug 7, 2026
  2. self-assigned this
    on Aug 7, 2026
  3. bbottema commented on Aug 7, 2026

    @bbottema
    OwnerAuthor

    Fixed for v9.1.8. resetConnectionPoolMaxSize() now restores the maximum pool size to its default without changing the configured core size.

    For example, a builder configured with core size 2 and max size 12 now retains core size 2 and restores max size 4 after the reset call.

  4. modified the milestones: v9.1.8, 9.2.0 on Aug 8, 2026
  5. bbottema commented on Aug 8, 2026

    @bbottema
    OwnerAuthor

    Available in Simple Java Mail 9.1.8. resetConnectionPoolMaxSize() now restores only the maximum pool size and leaves the core size unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions