- // Close of the rbc is done by the async sendContent
- sendContent(rbc,callback);
- return;
- }
+ ReadableByteChannel rbc=httpContent.getReadableByteChannel();
+ if (rbc!=null)
+ {
+ if (LOG.isDebugEnabled())
+ LOG.debug("sendContent({}=={},{},direct={})",httpContent,rbc,callback,_channel.useDirectBuffers());
+ // Close of the rbc is done by the async sendContent
+ sendContent(rbc,callback);
+ return;
+ }