added attempt-to-reconnect upon tcp timeout