passing large transfer (made write return send instead of nbytes and
removed printing the payload)