134135136137138139140141142143144
clientStack.sendDown(getPlainPacket()); clientStack.sendDown(getPlainPacket()); Thread.sleep(5 * 1000); clientStack.drain(); shutdownLatch.release(); sm.doStop();
126127128129130131132133134135136
if (!completed.attempt(60 * 1000)) { throw new IllegalStateException("TIMEOUT"); } clientStack.drain(); shutdownLatch.release(); sm.doStop();
125126127128129130131132133134135
clientStack.sendDown(getPlainPacket()); clientStack.sendDown(getPlainPacket()); Thread.sleep(5 * 1000); //todo back to 5s clientStack.drain(); shutdownLatch.release(); sm.doStop();
133134135136137138139140141142143
124125126127128129130131132133134