An unrecoverable exception that signals to the application that something wrong happened.
553554555556557558559560561562563
if (maxConcurrentStreams > -1 && oldStreamCountValue >= maxConcurrentStreams) { String message = String.format("Max concurrent local streams (%d) exceeded.", maxConcurrentStreams); LOG.debug(message); promise.failed(new SPDYException(message)); return null; } if (localStreamCount.compareAndSet(oldStreamCountValue, oldStreamCountValue + 1)) break; }
186187188189190191192193194195196
Assert.fail(); } } catch (InterruptedException x) { throw new SPDYException(x); } } }); DataInfo dataInfo = exchanger.exchange(null, 5, TimeUnit.SECONDS);
279280281282283284285286287288289
Assert.fail(); } } catch (InterruptedException x) { throw new SPDYException(x); } } }; } }), new SessionFrameListener.Adapter()
7778798081828384858687
unit.sleep(2 * timeout); // super.flush(); } catch (InterruptedException x) { throw new SPDYException(x); } } }; final CountDownLatch failedLatch = new CountDownLatch(1);
122123124125126127128129130131132
unit.sleep(2 * timeout); // super.write(buffer, callback); } catch (InterruptedException x) { throw new SPDYException(x); } } }; Stream stream = session.syn(new SynInfo(5, TimeUnit.SECONDS, new Fields(), false, (byte)0), null);