Fixes #2530 - Client waits forever for cancelled uploads.
Added comment after review. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
0c8b33e581
commit
6553957278
|
@ -237,6 +237,9 @@ public class ManagedSelector extends ContainerLifeCycle implements Dumpable
|
||||||
|
|
||||||
public void destroyEndPoint(final EndPoint endPoint)
|
public void destroyEndPoint(final EndPoint endPoint)
|
||||||
{
|
{
|
||||||
|
// Waking up the selector is necessary to clean the
|
||||||
|
// cancelled-key set and tell the TCP stack that the
|
||||||
|
// socket is closed (so that senders receive RST).
|
||||||
submit(WAKEUP);
|
submit(WAKEUP);
|
||||||
execute(new DestroyEndPoint(endPoint));
|
execute(new DestroyEndPoint(endPoint));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue