pty.waitFor() just hold process wait util process is terminated, just like java.lang.Process. So it's not unnecessary to use thread keep process wait in web application. Reference at https://github.com/JetBrains/pty4j/issues/87#event-3457185561
Add method of onTerminalClose to handle the WebSocket session which is in not open state and release pty process.
pty.waitFor()
just hold process wait util process is terminated, just likejava.lang.Process
. So it's not unnecessary to use thread keep process wait in web application. Reference at https://github.com/JetBrains/pty4j/issues/87#event-3457185561Add method of
onTerminalClose
to handle the WebSocket session which is in not open state and release pty process.