Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ScheduledExecutorService may not be shutdown in ChannelFactory #619

Description

@Daemonxiao

Bug Report

1. Describe the bug

public class ChannelFactory implements AutoCloseable {
    private final ScheduledExecutorService recycler = Executors.newSingleThreadScheduledExecutor();
     ....
     public void close() {
     ....
      if (certContext != null) {
        recycler.shutdown();                                      // recycler would not shutdown when TLS is disable
        if (certWatcher != null) {
          certWatcher.close();
        }
      }
    }
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions