fix improper way of handling dynamicbytebuffer with socketchannel.read