What is the normal way of shutting down a reactor in proton-j? I'm trying to track down a thread leak in a codebase that sets up a new reactor on its own thread every time a new connection is opened. That part and the subsequent message traffic all work fine. But when the connection is closed, the reactor thread does not terminate but remains in a loop, selecting merrily away in isolation. Besides the selector for the socket, there is another selector passed to the reactor. I couldn't find any code that shut down the second selector so I tried terminate()ing it, but that had no visible effect.
If anyone can point out what our code should be doing, it would be greatly appreciated. Thanks! --James
