eclipse-ee4j / grizzly

Grizzly
https://eclipse-ee4j.github.io/grizzly
Other
147 stars 68 forks source link

Attempt to stabilize TCPNIOTransportTest #2166

Closed dmatej closed 2 years ago

dmatej commented 2 years ago
pzygielo commented 2 years ago

I haven't read the change yet, but I :heart::

dmatej commented 2 years ago

Good - it always passed even before, on my machine, but ...

NIO is heavily multithreaded, so it just sends signals like "please stop". Then it stops accepting requests, probably sends some good bye packets, closes input and output ... and here it finally calls an on-close listener if provided - but that doesn't block caller.