public void run() { try { try { this.xc = getTransceiver(channel); while (true) { xc.writeBuffers(responder.respond(xc.readBuffers(), xc)); } } catch (EOFException e) { return; } catch (ClosedChannelException e) { return; } finally { xc.close(); } } catch (IOException e) { LOG.warn("unexpected error", e); } }
public void run() { try { try { this.xc = getTransceiver(channel); while (true) { xc.writeBuffers(responder.respond(xc.readBuffers(), xc)); } } catch (EOFException e) { return; } catch (ClosedChannelException e) { return; } finally { xc.close(); } } catch (IOException e) { LOG.warn("unexpected error", e); } }