を持っていて、それIoSession
を呼び出すclose()
と、まだ接続されています。
コード:
restSession.close(true).awaitUninterruptibly(5000); //Stuck here, timeout is ignored
connector.dispose(); //Never happens :(
他のバージョン:
restSession.close(true);
while (restSession.isConnected()) {
System.out.println("REST is still connected!"); //Keeps spamming
try {
Thread.sleep(1000);
} catch (final InterruptedException e) {
e.printStackTrace();
}
}
connector.dispose(); //Never happens :(
なぜこれが起こっているのか、それを解決する方法はありますか? close(true)
なんとしても閉めてはいけませんか?