@checkForStaleConnection now uses @sent_index to determine stale connection