change the behavior that decide a connection is connected.