Skip to content

Destroy AsyncHttpEncryptionAwareConduitFactory object when WinRMService instance is closing #73

Closed

Description

@kegorof

When WinRMService is closed, the AsyncHTTPConduitFactory.CloseIdleConnectionThread continues running, resulting in a thread leak.

This issue occurs because WinRMInvocationHandler creates a new instance of AsyncHttpEncryptionAwareConduitFactory but does not invoke its shutdown() method. As a result, the internal thread responsible for managing idle connections is not terminated properly.

Suggested Fix: Ensure that any instances of AsyncHttpEncryptionAwareConduitFactory are explicitly destroyed when closing the associated org.apache.cxf.endpoint.Client objects. This will guarantee that all background threads are properly shut down and prevent resource leakage.

Activity

  1. bertysentry commented on May 20, 2026

    @bertysentry
    Contributor

    Sorry we TOTALLY missed the issue you created a while ago (no notification was received), just like a few others. Very sorry about that, we'll look into this asap!

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions