fix: handle smaller buffers in network stack