added a timeout timer for both node and rails connections