Graylog2 / gelfclient

GELF client library for Java based on Netty 4
https://www.graylog.org/
Apache License 2.0
38 stars 19 forks source link

Wait for termination of netty on Transport.stop() #12

Closed camann9 closed 9 years ago

camann9 commented 9 years ago

Currently the AbstractGelfTransport.stop() method doesn't wait for the returned future to terminate before returning. It would be desirable to block during netty termination or to offer another stop method that is blocking (or to return the future). Example for blocking shutdown:

workerGroup.shutdownGracefully()..awaitUninterruptibly()
bernd commented 9 years ago

Thanks for the heads up!