741742743744745746747748749750751
Callable timedCallable = new TimedCallable(callable, CLOSE_TIMEOUT); try { timedCallable.call(); } catch (Throwable t) { //Ignore - the server might have already closed - so this is ok }
818819820821822823824825826827828
712713714715716717718719720721722
725726727728729730731732733734735
777778779780781782783784785786787
Callable timedCallable = new TimedCallable(callable, CLOSE_TIMEOUT); try { timedCallable.call(); } catch (Throwable t) { // Ignore - the server might have already closed - so this is ok }
872873874875876877878879880881882
750751752753754755756757758759760
827828829830831832833834835836837
185186187188189190191192193194195
for( int i=0; i < CONSUMER_COUNT; i++ ) { new Thread("Consumer:"+i) { public void run() { try { consumer.call(); } catch (Throwable e) { workerError[0] = e; } } }.start();