252253254255256257258259260261262263264265266267268269270271272273274275
} if (i == -1) { // client hung up break; } final KeepAliveStyle style = KeepAliveStyle.values()[i]; final Lock l2 = this.lock; l2.lock(); try { switch (style) { case PING_PING: { i = in.read(); break; } case PING_PONG: { out.write(style.ordinal()); out.flush(); break; } }
192193194195196197198199200201202203204205206207208209210211212213
} if (i == -1){ // client hung up break; } KeepAliveStyle style = KeepAliveStyle.values()[i]; try { usage.lock(); switch(style){ case PING_PING: { in.read(); } break; case PING_PONG: { out.write(style.ordinal()); out.flush(); } } service.service(new Input(in), new Output(out));
248249250251252253254255256257258259260261262263264265266267268269270271
207208209210211212213214215216217218219220221222223224225226227228229
} if (i == -1) { // client hung up break; } final KeepAliveStyle style = KeepAliveStyle.values()[i]; final Lock l = this.usage; try { l.lock(); switch (style) { case PING_PING: { i = in.read(); break; } case PING_PONG: { out.write(style.ordinal()); out.flush(); break; } }
223224225226227228229230231232233234235236237238239240241242243244245