[Issue 9831] connection_next() can skip an active connection