Hi Paul, > I switched to using Jetty and I had the same problem -- the process > didn't terminate. So I figured out that it was my fault by > creating a deadlock. I removed that and now the process terminates when > calling System.exit(0). So then I went and tried Simple again and it > too now terminates. > > I then tried removing the call to System.exit(0) to see if the > process would exit naturally. It doesn't with Simple and does with > Jetty. Hence, the bug with Simple seems confirmed.
Your are correct, only forcing the JVM exit works with Simple. > Hypothetically, if I wanted to continue to use Simple, it is OK to > call System.exit(0) and still terminate "gracefully"? What doesn't work is "graceful" shutdown where the socket is stopped to prevent accepting new requests, while completing the processing of accepted ones. Best regards, Jerome

