equal
deleted
inserted
replaced
347 ); |
347 ); |
348 conn.close(); |
348 conn.close(); |
349 } |
349 } |
350 } |
350 } |
351 } |
351 } |
352 } catch (CancelledKeyException e) { |
352 } catch (Exception e) { |
353 logger.log (Level.FINER, "Dispatcher (3)", e); |
353 logger.log (Level.FINER, "Dispatcher (3)", e); |
354 } catch (IOException e) { |
|
355 logger.log (Level.FINER, "Dispatcher (4)", e); |
|
356 } |
354 } |
357 } |
355 } |
358 } |
356 } |
359 |
357 |
360 public void handle (SocketChannel chan, HttpConnection conn) |
358 public void handle (SocketChannel chan, HttpConnection conn) |
362 { |
360 { |
363 try { |
361 try { |
364 Exchange t = new Exchange (chan, protocol, conn); |
362 Exchange t = new Exchange (chan, protocol, conn); |
365 executor.execute (t); |
363 executor.execute (t); |
366 } catch (HttpError e1) { |
364 } catch (HttpError e1) { |
367 logger.log (Level.FINER, "Dispatcher (5)", e1); |
365 logger.log (Level.FINER, "Dispatcher (4)", e1); |
368 conn.close(); |
366 conn.close(); |
369 } catch (IOException e) { |
367 } catch (IOException e) { |
370 logger.log (Level.FINER, "Dispatcher (6)", e); |
368 logger.log (Level.FINER, "Dispatcher (5)", e); |
371 conn.close(); |
369 conn.close(); |
372 } |
370 } |
373 } |
371 } |
374 } |
372 } |
375 |
373 |