Anyone? Are there any samples that I could look at, perhaps?

Thanks!

-----Original Message-----
From: James Birdsall [mailto:[email protected]] 
Sent: Wednesday, October 5, 2016 11:55 AM
To: [email protected]
Subject: Shutting down proton-j reactor

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to