netty5/transport/src/test/java/io/netty/channel/pool
Divij Vaidya fa1dedcc0f Make sync close for FixedChannelPool truly synchronous (#9226)
Motivation:

In the current implementation, the synchronous close() method for FixedChannelPool returns
after scheduling the channels to close via a single threaded executor asynchronously. Closing a channel
requires event loop group, however, there might be a scenario when the application has closed
the event loop group after the sync close() completes. In this scenario an exception is thrown
(event loop rejected the execution) when the single threaded executor tries to close the channel.

Modifications:

Complete the close function only after all the channels have been close and introduce
closeAsync() method for cases when the current/existing behaviour is desired.

Result:

Close function would completely when the channels have been closed
2019-06-14 12:01:14 +02:00
..
AbstractChannelPoolMapTest.java Clean-up unused imports 2016-09-30 09:08:50 +02:00
CountingChannelPoolHandler.java [#3218] Add ChannelPool / ChannelPoolMap abstraction and implementations 2015-04-30 12:13:19 +02:00
FixedChannelPoolTest.java Make sync close for FixedChannelPool truly synchronous (#9226) 2019-06-14 12:01:14 +02:00
SimpleChannelPoolTest.java Invoke channelAcquired callback on first time channel acquire (#9093) 2019-04-29 20:45:49 +02:00