change server close
fix nio offset and length passing to reader