add readLine, modify readReqData to reduce the stress on gc