fix bugs, cant recv response
process send and recv EINTR