303304305306307308309310311312313
return; } SSLException e = new SSLException("handshake timed out"); if (promise.tryFailure(e)) { ctx.fireExceptionCaught(e); ctx.close(); } } }, handshakeTimeoutMillis, TimeUnit.MILLISECONDS); } else {
324325326327328329330331332333334
engine.beginHandshake(); handshakePromises.add(promise); flush0(ctx, ctx.newPromise(), true); } catch (Exception e) { if (promise.tryFailure(e)) { ctx.fireExceptionCaught(e); ctx.close(); } } } });
578579580581582583584585586587588
m2.set((Message) args[0]); return null; } }); when(ctx.fireExceptionCaught(any(Throwable.class))).then(new Answer<Void>() { @Override public Void answer(InvocationOnMock invocation) throws Throwable { Object[] args = invocation.getArguments(); for(Object obj:args) {