support keep socket live even read data time out

My application need such feature to read until time out and write next command to tcp socket.