Socker timeout has been used to unblock readLine within 10s.