ByteBuffer buf = ByteBuffer.allocate(100);
try {
int read = channel.read(buf);
if (read > 0) {
PushBackStreamSourceConduit pb = new PushBackStreamSourceConduit(connection.getSourceChannel().getConduit());
pb.pushBack(new ImmediatePooled<ByteBuffer>(buf));
connection.getSourceChannel().setConduit(pb);
}
if ((spdySelectionProvider.selected == null && read > 0) || HTTP_1_1.equals(spdySelectionProvider.selected)) {
sslConnection.getSourceChannel().suspendReads();
spdyFailedListener.handleEvent(sslConnection);