python-aidot-cameras 1.0.0rc47__tar.gz → 1.0.0rc48__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_aidot_cameras-1.0.0rc47/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0rc48}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_upstream.py +23 -2
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/lan_retry.py +73 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/pyproject.toml +1 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/python_aidot_cameras.egg-info/SOURCES.txt +1 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_lan_retry_reaches_the_storming_devices.py +3 -3
- python_aidot_cameras-1.0.0rc48/tests/test_lan_retry_stops_on_close.py +460 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/README.md +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/client.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/playback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/protocol.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/sdes_open.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/tutk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_peer_id_class_env.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_playback_tls.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_echo_wait_is_not_dead_time.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_session_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_tmmbr.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_tutk_path_is_out_of_reach.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_unreachable_nominee_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/tests/test_webrtc_answer_race.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc48
|
|
4
4
|
Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
|
|
5
5
|
Author-email: cbrightly <chris.brightly@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_upstream.py
RENAMED
|
@@ -212,13 +212,34 @@ def cancel_pending_reconnect(device_client: Any) -> bool:
|
|
|
212
212
|
B, so on shape A it would find nothing, cancel nothing, and report success -
|
|
213
213
|
the leak fix would go quiet instead of failing. Callers that care should
|
|
214
214
|
log the False case.
|
|
215
|
+
|
|
216
|
+
``LanRetryMixin._schedule_reconnect`` (``aidot_cameras.lan_retry``) does not
|
|
217
|
+
use either handle: it replaces upstream's immediate-respawn task with a
|
|
218
|
+
delayed one, parked under its own ``_lan_retry_task`` - not upstream's
|
|
219
|
+
``_login_task``, because upstream's ``update_ip_address()`` overwrites
|
|
220
|
+
``_login_task`` unconditionally (when not mid-connect and not logged in),
|
|
221
|
+
which would silently orphan a delayed retry parked under that name rather
|
|
222
|
+
than cancel it. Without cancelling ``_lan_retry_task`` here too, a
|
|
223
|
+
pending retry armed before close still sleeps out its backoff and calls
|
|
224
|
+
``async_login()`` on a closed client - on success that leaks a socket, a
|
|
225
|
+
receive task and a ping timer for the life of the process. ``_login_task``
|
|
226
|
+
is also checked and cancelled: it is where upstream itself parks an
|
|
227
|
+
in-flight ``async_login()`` task (from ``update_ip_address()`` or its own
|
|
228
|
+
``_schedule_reconnect()``), and a closed client should not be left
|
|
229
|
+
completing one of those either.
|
|
215
230
|
"""
|
|
231
|
+
cancelled = False
|
|
216
232
|
for attr in RECONNECT_HANDLE_ATTRS:
|
|
217
233
|
handle = getattr(device_client, attr, None)
|
|
218
234
|
if handle is not None:
|
|
219
235
|
handle.cancel()
|
|
220
|
-
|
|
221
|
-
|
|
236
|
+
cancelled = True
|
|
237
|
+
for attr in ("_lan_retry_task", "_login_task"):
|
|
238
|
+
task = getattr(device_client, attr, None)
|
|
239
|
+
if task is not None and not task.done():
|
|
240
|
+
task.cancel()
|
|
241
|
+
cancelled = True
|
|
242
|
+
return cancelled
|
|
222
243
|
|
|
223
244
|
|
|
224
245
|
# --------------------------------------------------------------------------- #
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/lan_retry.py
RENAMED
|
@@ -191,6 +191,16 @@ class LanRetryMixin:
|
|
|
191
191
|
#: bare module read so a subclass (or a test) can shorten it in place.
|
|
192
192
|
_login_connect_timeout_s: float = _LOGIN_CONNECT_TIMEOUT_S
|
|
193
193
|
|
|
194
|
+
#: The delayed retry task armed by `_schedule_reconnect`, or None. Its
|
|
195
|
+
#: own attribute, deliberately not upstream's `_login_task`: upstream's
|
|
196
|
+
#: `update_ip_address()` overwrites `_login_task` with a fresh in-flight
|
|
197
|
+
#: login task, without cancelling whatever was already parked there -
|
|
198
|
+
#: which would silently orphan a sleeping retry rather than cancel it.
|
|
199
|
+
#: (`connect()` itself never touches `_login_task`; only
|
|
200
|
+
#: `update_ip_address()` and upstream's own `_schedule_reconnect()` do,
|
|
201
|
+
#: and this mixin's override of the latter never calls super().)
|
|
202
|
+
_lan_retry_task: Optional[asyncio.Task] = None
|
|
203
|
+
|
|
194
204
|
@property
|
|
195
205
|
def lan_address(self) -> Optional[str]:
|
|
196
206
|
"""The LAN address the login is tried at, or None before discovery."""
|
|
@@ -313,6 +323,36 @@ class LanRetryMixin:
|
|
|
313
323
|
self._connect_failures,
|
|
314
324
|
)
|
|
315
325
|
return
|
|
326
|
+
# Upstream's own update_ip_address (below, via super()) spawns a fresh
|
|
327
|
+
# `_login_task` with a plain `asyncio.create_task`, but ONLY when it
|
|
328
|
+
# is not mid-connect and not logged in - `if self._connecting is not
|
|
329
|
+
# True and self._connect_and_login is not True`. Discovery calls this
|
|
330
|
+
# on every broadcast, same address or not, so under that same
|
|
331
|
+
# condition a `_lan_retry_task` from _schedule_reconnect that is still
|
|
332
|
+
# asleep would be overwritten rather than cancelled: it fires anyway a
|
|
333
|
+
# few seconds later, a second login attempt for one discovery update.
|
|
334
|
+
#
|
|
335
|
+
# The gate below mirrors upstream's own condition exactly, rather than
|
|
336
|
+
# cancelling unconditionally: a sleeping retry that has already woken
|
|
337
|
+
# and is mid-`connect()` (`_connecting` True, a socket open) must NOT
|
|
338
|
+
# be cancelled here. `task.cancel()` only schedules a CancelledError
|
|
339
|
+
# at the next suspension point - it is not visible to `_connecting`
|
|
340
|
+
# synchronously - so `super().update_ip_address(ip)` below would still
|
|
341
|
+
# see `_connecting` True and spawn no replacement login, while the
|
|
342
|
+
# cancelled task's `finally: self._connecting = False` (inside
|
|
343
|
+
# upstream's `connect()`) runs later without closing `self.writer`:
|
|
344
|
+
# a non-closed light left with no login, no retry, and a leaked
|
|
345
|
+
# socket until the next discovery cycle. Only cancel when upstream's
|
|
346
|
+
# own check says it is about to supersede this with a fresh login.
|
|
347
|
+
pending = getattr(self, "_lan_retry_task", None)
|
|
348
|
+
if (
|
|
349
|
+
pending is not None
|
|
350
|
+
and pending is not asyncio.current_task()
|
|
351
|
+
and not pending.done()
|
|
352
|
+
and not getattr(self, "_connecting", False)
|
|
353
|
+
and not getattr(self, "_connect_and_login", False)
|
|
354
|
+
):
|
|
355
|
+
pending.cancel()
|
|
316
356
|
super().update_ip_address(ip)
|
|
317
357
|
|
|
318
358
|
def _schedule_reconnect(self) -> None:
|
|
@@ -353,6 +393,13 @@ class LanRetryMixin:
|
|
|
353
393
|
async def _retry() -> None:
|
|
354
394
|
try:
|
|
355
395
|
await asyncio.sleep(delay)
|
|
396
|
+
# Close can land while this is asleep: a caller that closes
|
|
397
|
+
# without going through `_upstream.cancel_pending_reconnect`
|
|
398
|
+
# must still not log a closed client back in. Checked AFTER
|
|
399
|
+
# the sleep, not before scheduling: a close between here and
|
|
400
|
+
# the schedule call is exactly what the cancel on close is for.
|
|
401
|
+
if getattr(self, "_is_close", False):
|
|
402
|
+
return
|
|
356
403
|
await self.async_login()
|
|
357
404
|
except asyncio.CancelledError:
|
|
358
405
|
raise
|
|
@@ -363,4 +410,29 @@ class LanRetryMixin:
|
|
|
363
410
|
exc_info=True,
|
|
364
411
|
)
|
|
365
412
|
|
|
366
|
-
|
|
413
|
+
# Cancel a still-pending retry from an earlier failure before
|
|
414
|
+
# replacing it: reset() can call back in here (an address change, or
|
|
415
|
+
# another dropped connection) while the previous delayed retry is
|
|
416
|
+
# still asleep, and overwriting it without cancelling would let both
|
|
417
|
+
# reach `async_login()`. Never the currently running task though:
|
|
418
|
+
# `_retry()`'s own `async_login()` can fail and end in
|
|
419
|
+
# `reset()` -> `_schedule_reconnect()` on the SAME task (this call
|
|
420
|
+
# frame), in which case `previous` IS `asyncio.current_task()` and
|
|
421
|
+
# cancelling it would cut the retry we are in the middle of arming.
|
|
422
|
+
#
|
|
423
|
+
# Tracked under our OWN attribute, `_lan_retry_task`, rather than
|
|
424
|
+
# upstream's `_login_task`: upstream's `update_ip_address` overwrites
|
|
425
|
+
# `_login_task` with a fresh in-flight login task, with no cancel of
|
|
426
|
+
# whatever was there - a delayed retry parked under the same name
|
|
427
|
+
# would then be orphaned (unreachable to cancel) but still fire on
|
|
428
|
+
# its own a few seconds later. See `update_ip_address` below for the
|
|
429
|
+
# matching cancel on the discovery path, and
|
|
430
|
+
# `_upstream.cancel_pending_reconnect` for the one on close.
|
|
431
|
+
previous = getattr(self, "_lan_retry_task", None)
|
|
432
|
+
if (
|
|
433
|
+
previous is not None
|
|
434
|
+
and previous is not asyncio.current_task()
|
|
435
|
+
and not previous.done()
|
|
436
|
+
):
|
|
437
|
+
previous.cancel()
|
|
438
|
+
self._lan_retry_task = asyncio.create_task(_retry())
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-aidot-cameras"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0rc48"
|
|
8
8
|
description = "Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc48
|
|
4
4
|
Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
|
|
5
5
|
Author-email: cbrightly <chris.brightly@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -169,6 +169,7 @@ tests/test_lan_control.py
|
|
|
169
169
|
tests/test_lan_login_accessors.py
|
|
170
170
|
tests/test_lan_retry_reaches_the_storming_devices.py
|
|
171
171
|
tests/test_lan_retry_silences_upstream_over_ceiling.py
|
|
172
|
+
tests/test_lan_retry_stops_on_close.py
|
|
172
173
|
tests/test_lan_sweep_only_with_lights.py
|
|
173
174
|
tests/test_late_repeats_are_dropped.py
|
|
174
175
|
tests/test_light_active_color_mode.py
|
|
@@ -84,14 +84,14 @@ def test_a_light_that_cannot_log_in_is_eventually_left_alone():
|
|
|
84
84
|
dc._ip_address = None
|
|
85
85
|
spawned = 0
|
|
86
86
|
for _ in range(_LOGIN_RETRY_LIMIT + 5):
|
|
87
|
-
dc.
|
|
87
|
+
dc._lan_retry_task = None
|
|
88
88
|
dc._schedule_reconnect()
|
|
89
89
|
handle = getattr(dc, "_reconnect_handle", None)
|
|
90
90
|
if handle is not None:
|
|
91
91
|
handle.cancel()
|
|
92
|
-
if dc.
|
|
92
|
+
if dc._lan_retry_task is None:
|
|
93
93
|
break
|
|
94
|
-
dc.
|
|
94
|
+
dc._lan_retry_task.cancel()
|
|
95
95
|
spawned += 1
|
|
96
96
|
return spawned
|
|
97
97
|
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
"""Finding 1 of the 2026-10-13 review, plus a follow-up review of the first fix.
|
|
2
|
+
|
|
3
|
+
`LanRetryMixin._schedule_reconnect` arms a delayed `_retry` task (1-60 s
|
|
4
|
+
backoff) that sleeps and then calls `self.async_login()` with no re-check of
|
|
5
|
+
`_is_close`. `CameraClient.async_close` cancels a pending reconnect only
|
|
6
|
+
through `_upstream.cancel_pending_reconnect`, which (before the first fix)
|
|
7
|
+
knew upstream's `_reconnect_handle`/`_reconnect_timer` but not the mixin's
|
|
8
|
+
delayed retry at all. So after an integration unload/reload, a retry armed
|
|
9
|
+
before close woke up afterwards and logged a light back in on a closed
|
|
10
|
+
client; on success that leaked upstream's receive task and 30 s ping timer
|
|
11
|
+
for the life of the process.
|
|
12
|
+
|
|
13
|
+
The first fix tracked the delayed retry under upstream's own `_login_task`
|
|
14
|
+
attribute. A follow-up review found that false on the discovery path:
|
|
15
|
+
upstream's `update_ip_address()` overwrites `_login_task` unconditionally
|
|
16
|
+
(whenever not mid-connect and not logged in) with a fresh in-flight login
|
|
17
|
+
task, with no cancel of whatever was already parked there. (`connect()`
|
|
18
|
+
itself never touches `_login_task` - only `update_ip_address()` and
|
|
19
|
+
upstream's own `_schedule_reconnect()`, which this mixin overrides and never
|
|
20
|
+
calls via `super()`, do.) Discovery calls `update_ip_address` on every
|
|
21
|
+
broadcast, same address or not, so a delayed retry sharing that name was
|
|
22
|
+
silently orphaned - unreachable to `cancel_pending_reconnect` - rather than
|
|
23
|
+
cancelled, and still fired its own login a few seconds later: two attempts
|
|
24
|
+
for one broadcast. The retry is now tracked under its own `_lan_retry_task`
|
|
25
|
+
attribute instead.
|
|
26
|
+
|
|
27
|
+
A second follow-up review then found the fix for THAT regressed the mid-
|
|
28
|
+
connect case: cancelling `_lan_retry_task` unconditionally in
|
|
29
|
+
`update_ip_address` also cancelled a retry that had already woken up and was
|
|
30
|
+
itself mid-`connect()` (socket open, `_connecting` True). `task.cancel()`
|
|
31
|
+
only schedules a `CancelledError` for the next suspension point, so
|
|
32
|
+
`super().update_ip_address(ip)` - called synchronously right after - still
|
|
33
|
+
saw `_connecting` True and spawned no replacement login; the device was left
|
|
34
|
+
with neither the in-flight login nor a retry until the next discovery cycle,
|
|
35
|
+
and the open socket was never closed. The discovery-path cancel now fires
|
|
36
|
+
only under the exact condition upstream itself uses to decide whether to
|
|
37
|
+
start a new login (`not _connecting and not _connect_and_login`), so a retry
|
|
38
|
+
mid-connect is left alone.
|
|
39
|
+
|
|
40
|
+
Tests, in order: the delayed task refuses to log in once closed (defense in
|
|
41
|
+
depth, independent of anyone cancelling it); the shared cancel helper finds
|
|
42
|
+
and cancels it; arming a second retry while one is still pending cancels the
|
|
43
|
+
first instead of leaving both to log in; that cancel-the-previous-task logic
|
|
44
|
+
must not cancel ITSELF when `async_login` fails and calls back into
|
|
45
|
+
`_schedule_reconnect` from inside the very task being replaced; an ordinary
|
|
46
|
+
retry with nothing closing it still fires (positive control); the discovery
|
|
47
|
+
path (`update_ip_address`) cancels a SLEEPING retry instead of orphaning it,
|
|
48
|
+
and the retry that replaces it stays reachable to `cancel_pending_reconnect`;
|
|
49
|
+
the same discovery path leaves a retry that is already MID-CONNECT alone,
|
|
50
|
+
with no replacement login spawned over it and no leaked socket; and the same
|
|
51
|
+
close defect end to end through the real `CameraClient` dispatch and
|
|
52
|
+
teardown, not the bare mixin - this repo has already shipped a fix that was
|
|
53
|
+
correct code on a class the real construction path never built (see
|
|
54
|
+
`tests/test_lan_retry_reaches_the_storming_devices.py`).
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
import asyncio
|
|
58
|
+
import os
|
|
59
|
+
import sys
|
|
60
|
+
|
|
61
|
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
62
|
+
|
|
63
|
+
import aidot.device_client as _upstream_device_client # noqa: E402
|
|
64
|
+
|
|
65
|
+
from aidot_cameras import _upstream # noqa: E402
|
|
66
|
+
from aidot_cameras import lan_retry # noqa: E402
|
|
67
|
+
from aidot_cameras.client import CameraClient # noqa: E402
|
|
68
|
+
from aidot_cameras.lan_retry import LanRetryMixin # noqa: E402
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class _FakeUpstream:
|
|
72
|
+
"""Stands in for `aidot.device_client.DeviceClient` for this mixin.
|
|
73
|
+
|
|
74
|
+
`update_ip_address` reproduces upstream's real behaviour exactly where it
|
|
75
|
+
matters here: it overwrites `_login_task` unconditionally with a fresh
|
|
76
|
+
in-flight login task whenever the client is not mid-connect and not
|
|
77
|
+
logged in, with no cancel of whatever was already parked under that
|
|
78
|
+
name. See `aidot.device_client.DeviceClient.update_ip_address`.
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
def __init__(self):
|
|
82
|
+
self.device_id = "dev-a"
|
|
83
|
+
self._ip_address = "192.168.1.50"
|
|
84
|
+
self._connecting = False
|
|
85
|
+
self._connect_and_login = False
|
|
86
|
+
self._is_close = False
|
|
87
|
+
self._login_task = None
|
|
88
|
+
self.login_calls = 0
|
|
89
|
+
|
|
90
|
+
async def async_login(self):
|
|
91
|
+
self.login_calls += 1
|
|
92
|
+
|
|
93
|
+
def update_ip_address(self, ip):
|
|
94
|
+
if ip is None:
|
|
95
|
+
return
|
|
96
|
+
self._ip_address = ip
|
|
97
|
+
if self._connecting is not True and self._connect_and_login is not True:
|
|
98
|
+
self._login_task = asyncio.create_task(self.async_login())
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class _Client(LanRetryMixin, _FakeUpstream):
|
|
102
|
+
pass
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def test_a_pending_retry_does_not_log_in_once_closed(monkeypatch):
|
|
106
|
+
"""The delayed task re-checks `_is_close` itself, after its sleep.
|
|
107
|
+
|
|
108
|
+
Closed directly (no cancel), the way a caller unaware of `_lan_retry_task`
|
|
109
|
+
would leave it: the task must still refuse to call `async_login()`.
|
|
110
|
+
"""
|
|
111
|
+
monkeypatch.setattr(
|
|
112
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 0.05
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
async def _run():
|
|
116
|
+
c = _Client()
|
|
117
|
+
c._schedule_reconnect()
|
|
118
|
+
task = c._lan_retry_task
|
|
119
|
+
assert task is not None
|
|
120
|
+
c._is_close = True # close() lands while the retry is still asleep
|
|
121
|
+
await asyncio.sleep(0.15)
|
|
122
|
+
return c.login_calls, task.done()
|
|
123
|
+
|
|
124
|
+
login_calls, done = asyncio.run(_run())
|
|
125
|
+
assert login_calls == 0, "a closed client must not be logged back in"
|
|
126
|
+
assert done
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def test_cancel_pending_reconnect_finds_the_mixin_s_delayed_retry(monkeypatch):
|
|
130
|
+
"""`_upstream.cancel_pending_reconnect` is what `CameraClient.async_close`
|
|
131
|
+
actually calls; it has to know about `_lan_retry_task`, not only the two
|
|
132
|
+
upstream timer-handle spellings."""
|
|
133
|
+
monkeypatch.setattr(
|
|
134
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 60.0
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
async def _run():
|
|
138
|
+
c = _Client()
|
|
139
|
+
c._schedule_reconnect()
|
|
140
|
+
task = c._lan_retry_task
|
|
141
|
+
assert task is not None and not task.done()
|
|
142
|
+
cancelled = _upstream.cancel_pending_reconnect(c)
|
|
143
|
+
c._is_close = True
|
|
144
|
+
await asyncio.sleep(0)
|
|
145
|
+
return cancelled, task.cancelled() or task.done(), c.login_calls
|
|
146
|
+
|
|
147
|
+
cancelled, task_gone, login_calls = asyncio.run(_run())
|
|
148
|
+
assert cancelled is True
|
|
149
|
+
assert task_gone
|
|
150
|
+
assert login_calls == 0
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def test_scheduling_a_new_retry_cancels_the_still_pending_one(monkeypatch):
|
|
154
|
+
"""`reset()` can call back into `_schedule_reconnect` (another dropped
|
|
155
|
+
connection, or an address change) while an earlier delayed retry is still
|
|
156
|
+
asleep. Overwriting `_lan_retry_task` without cancelling it would let
|
|
157
|
+
both reach `async_login()`."""
|
|
158
|
+
monkeypatch.setattr(
|
|
159
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 0.05
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
async def _run():
|
|
163
|
+
c = _Client()
|
|
164
|
+
c._login_attempt = 0
|
|
165
|
+
c._schedule_reconnect()
|
|
166
|
+
first = c._lan_retry_task
|
|
167
|
+
c._login_attempt = 0 # a fresh cycle, as an address change would give it
|
|
168
|
+
c._schedule_reconnect()
|
|
169
|
+
second = c._lan_retry_task
|
|
170
|
+
assert second is not first
|
|
171
|
+
await asyncio.sleep(0.15)
|
|
172
|
+
return first.cancelled(), c.login_calls
|
|
173
|
+
|
|
174
|
+
first_cancelled, login_calls = asyncio.run(_run())
|
|
175
|
+
assert first_cancelled
|
|
176
|
+
assert login_calls == 1, "only the replacement retry should reach async_login"
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
def test_a_retry_still_logs_in_when_nothing_closed_it(monkeypatch):
|
|
180
|
+
"""The fix must not turn into a fix that never retries at all."""
|
|
181
|
+
monkeypatch.setattr(
|
|
182
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 0.05
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
async def _run():
|
|
186
|
+
c = _Client()
|
|
187
|
+
c._schedule_reconnect()
|
|
188
|
+
await asyncio.sleep(0.15)
|
|
189
|
+
return c.login_calls
|
|
190
|
+
|
|
191
|
+
assert asyncio.run(_run()) == 1
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def test_a_retry_whose_login_fails_can_rearm_itself(monkeypatch):
|
|
195
|
+
"""The cancel-the-previous-task guard must not cancel the task it runs in.
|
|
196
|
+
|
|
197
|
+
A failed login ends in upstream's `reset()`, which calls
|
|
198
|
+
`_schedule_reconnect()` again - from inside THIS `_retry` task, on this
|
|
199
|
+
same call stack. At that point `self._lan_retry_task` (the "previous" one
|
|
200
|
+
about to be replaced) IS the task currently running this code. Cancelling
|
|
201
|
+
it there would cut the retry attempt short instead of merely replacing a
|
|
202
|
+
DIFFERENT, still-sleeping task.
|
|
203
|
+
"""
|
|
204
|
+
monkeypatch.setattr(
|
|
205
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 0.05
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
class _ClientThatRearmsOnFailure(_Client):
|
|
209
|
+
async def async_login(self):
|
|
210
|
+
await super().async_login()
|
|
211
|
+
if self.login_calls < 2:
|
|
212
|
+
self._schedule_reconnect() # what reset() does on failure
|
|
213
|
+
else:
|
|
214
|
+
self._is_close = True # stop the chain once both ran
|
|
215
|
+
|
|
216
|
+
async def _run():
|
|
217
|
+
c = _ClientThatRearmsOnFailure()
|
|
218
|
+
c._schedule_reconnect()
|
|
219
|
+
first = c._lan_retry_task
|
|
220
|
+
await asyncio.sleep(0.15) # first attempt's sleep + its own re-arm
|
|
221
|
+
second = c._lan_retry_task
|
|
222
|
+
await asyncio.sleep(0.15) # second attempt's sleep
|
|
223
|
+
return first, second, c.login_calls
|
|
224
|
+
|
|
225
|
+
first, second, login_calls = asyncio.run(_run())
|
|
226
|
+
assert not first.cancelled(), "the retry must not cancel itself"
|
|
227
|
+
assert second is not first
|
|
228
|
+
assert login_calls == 2, "both the first and the re-armed retry must fire"
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def test_a_rebroadcast_cancels_the_sleeping_retry_instead_of_orphaning_it(
|
|
232
|
+
monkeypatch,
|
|
233
|
+
):
|
|
234
|
+
"""The discovery path, not a direct `_schedule_reconnect` call.
|
|
235
|
+
|
|
236
|
+
Discovery calls `update_ip_address` on every broadcast, same address or
|
|
237
|
+
not. Upstream's own version (reached via `super()`) overwrites
|
|
238
|
+
`_login_task` unconditionally with a fresh in-flight login task. Before
|
|
239
|
+
this test's fix, the mixin's delayed retry shared that same attribute
|
|
240
|
+
name, so the rebroadcast's fresh task silently replaced it in the
|
|
241
|
+
attribute - the sleeping retry coroutine kept running, unreachable to
|
|
242
|
+
`cancel_pending_reconnect`, and fired its own `async_login()` a few
|
|
243
|
+
seconds later: two login attempts for one broadcast. Tracking the retry
|
|
244
|
+
under its own `_lan_retry_task` means `update_ip_address` has to cancel
|
|
245
|
+
it explicitly, which it now does.
|
|
246
|
+
|
|
247
|
+
The rebroadcast's own login then fails (as it would for a device that is
|
|
248
|
+
not actually there yet) and arms a new retry; that one must stay
|
|
249
|
+
reachable to `cancel_pending_reconnect`, proving the fix did not just move
|
|
250
|
+
the orphaning one step later.
|
|
251
|
+
"""
|
|
252
|
+
monkeypatch.setattr(
|
|
253
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 60.0
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
class _ClientThatFailsItsFreshLogin(_Client):
|
|
257
|
+
async def async_login(self):
|
|
258
|
+
await super().async_login()
|
|
259
|
+
if self.login_calls == 1:
|
|
260
|
+
self._schedule_reconnect() # the rebroadcast's login fails
|
|
261
|
+
|
|
262
|
+
async def _run():
|
|
263
|
+
c = _ClientThatFailsItsFreshLogin()
|
|
264
|
+
c._schedule_reconnect() # an earlier failure's retry, still asleep
|
|
265
|
+
sleeping_retry = c._lan_retry_task
|
|
266
|
+
assert sleeping_retry is not None and not sleeping_retry.done()
|
|
267
|
+
|
|
268
|
+
c.update_ip_address(c._ip_address) # a same-address rebroadcast
|
|
269
|
+
await asyncio.sleep(0) # the fresh immediate login runs and fails
|
|
270
|
+
|
|
271
|
+
new_retry = c._lan_retry_task
|
|
272
|
+
cancelled = _upstream.cancel_pending_reconnect(c)
|
|
273
|
+
await asyncio.sleep(0)
|
|
274
|
+
return sleeping_retry, new_retry, cancelled, c.login_calls
|
|
275
|
+
|
|
276
|
+
sleeping_retry, new_retry, cancelled, login_calls = asyncio.run(_run())
|
|
277
|
+
assert sleeping_retry.cancelled(), (
|
|
278
|
+
"the pre-existing retry must be cancelled by the rebroadcast, not left "
|
|
279
|
+
"to fire on its own later"
|
|
280
|
+
)
|
|
281
|
+
assert new_retry is not None and new_retry is not sleeping_retry
|
|
282
|
+
assert cancelled is True, (
|
|
283
|
+
"cancel_pending_reconnect must still find the retry the rebroadcast armed"
|
|
284
|
+
)
|
|
285
|
+
assert login_calls == 1, (
|
|
286
|
+
"exactly one login from the rebroadcast; the orphaned retry firing too "
|
|
287
|
+
"would make this two"
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
class _FakeUpstreamWithRealConnectGate:
|
|
292
|
+
"""Mimics upstream's real `_connecting` / `_connect_and_login` dance.
|
|
293
|
+
|
|
294
|
+
`_FakeUpstream` above always calls through to `async_login` directly and
|
|
295
|
+
is enough for the other tests, but this one needs a `connect()` that can
|
|
296
|
+
actually be blocked mid-flight - the way a device that accepts the TCP
|
|
297
|
+
handshake and then stops answering parks upstream's real `connect()`
|
|
298
|
+
inside `readexactly` - so `update_ip_address` can be asked what it does
|
|
299
|
+
to a retry while it is caught in exactly that state.
|
|
300
|
+
"""
|
|
301
|
+
|
|
302
|
+
def __init__(self):
|
|
303
|
+
self.device_id = "dev-a"
|
|
304
|
+
self._ip_address = "192.168.1.50"
|
|
305
|
+
self._connecting = False
|
|
306
|
+
self._connect_and_login = False
|
|
307
|
+
self._is_close = False
|
|
308
|
+
self._login_task = None
|
|
309
|
+
self.login_calls = 0
|
|
310
|
+
self.writer = None
|
|
311
|
+
self.connect_released = asyncio.Event()
|
|
312
|
+
|
|
313
|
+
async def connect(self, ip):
|
|
314
|
+
self._connecting = True
|
|
315
|
+
self.login_calls += 1
|
|
316
|
+
self.writer = object() # stands in for the open socket
|
|
317
|
+
try:
|
|
318
|
+
await self.connect_released.wait() # the stuck readexactly
|
|
319
|
+
self._connect_and_login = True
|
|
320
|
+
finally:
|
|
321
|
+
self._connecting = False
|
|
322
|
+
|
|
323
|
+
async def reset(self):
|
|
324
|
+
"""Only ever referenced (not called) within the test's time window:
|
|
325
|
+
the mixin's `connect()` wrapper passes it as the connect-timeout
|
|
326
|
+
callback, and this test's timeout is far longer than the test."""
|
|
327
|
+
|
|
328
|
+
async def async_login(self):
|
|
329
|
+
if self._connecting is not True and self._connect_and_login is not True:
|
|
330
|
+
await self.connect(self._ip_address)
|
|
331
|
+
|
|
332
|
+
def update_ip_address(self, ip):
|
|
333
|
+
if ip is None:
|
|
334
|
+
return
|
|
335
|
+
self._ip_address = ip
|
|
336
|
+
if self._connecting is not True and self._connect_and_login is not True:
|
|
337
|
+
self._login_task = asyncio.create_task(self.async_login())
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
class _ClientWithRealConnectGate(LanRetryMixin, _FakeUpstreamWithRealConnectGate):
|
|
341
|
+
pass
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
def test_a_rebroadcast_leaves_a_mid_connect_retry_alone(monkeypatch):
|
|
345
|
+
"""The regression in the fix for the rebroadcast-orphaning defect above.
|
|
346
|
+
|
|
347
|
+
Cancelling `_lan_retry_task` unconditionally in `update_ip_address` would
|
|
348
|
+
also cancel a retry that has already woken up and is itself mid-
|
|
349
|
+
`connect()` - socket open, `_connecting` True. `task.cancel()` only
|
|
350
|
+
schedules a `CancelledError` for the task's next suspension point, so
|
|
351
|
+
`super().update_ip_address(ip)` - called synchronously right after -
|
|
352
|
+
would still see `_connecting` True and spawn no replacement login: a
|
|
353
|
+
device left with neither the in-flight login nor a retry until the next
|
|
354
|
+
discovery cycle, and the open socket never closed. The rebroadcast must
|
|
355
|
+
leave a mid-connect retry alone instead.
|
|
356
|
+
"""
|
|
357
|
+
monkeypatch.setattr(
|
|
358
|
+
"aidot_cameras.lan_retry._next_login_retry_delay", lambda attempt: 0.05
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
async def _run():
|
|
362
|
+
c = _ClientWithRealConnectGate()
|
|
363
|
+
c._schedule_reconnect() # arms a sleeping retry
|
|
364
|
+
await asyncio.sleep(0.1) # it wakes and blocks inside connect()
|
|
365
|
+
retry = c._lan_retry_task
|
|
366
|
+
assert retry is not None and not retry.done()
|
|
367
|
+
assert c._connecting is True
|
|
368
|
+
assert c.login_calls == 1 # the in-flight attempt; only the one so far
|
|
369
|
+
|
|
370
|
+
c.update_ip_address(c._ip_address) # a same-address rebroadcast
|
|
371
|
+
# Synchronous, no `await` yet: if `retry` were cancelled just above,
|
|
372
|
+
# cancellation has not been delivered to it yet either, so catching
|
|
373
|
+
# `_connecting` here is what distinguishes "left alone" from "a
|
|
374
|
+
# cancel was scheduled but had not landed when super() ran" - both
|
|
375
|
+
# look identical a tick later, only this moment tells them apart.
|
|
376
|
+
connecting_right_after_rebroadcast = c._connecting
|
|
377
|
+
replacement_spawned = c._login_task is not None
|
|
378
|
+
|
|
379
|
+
c.connect_released.set() # release the blocked connect()
|
|
380
|
+
await asyncio.sleep(0.05)
|
|
381
|
+
|
|
382
|
+
return (
|
|
383
|
+
retry,
|
|
384
|
+
connecting_right_after_rebroadcast,
|
|
385
|
+
replacement_spawned,
|
|
386
|
+
c.login_calls,
|
|
387
|
+
c._connect_and_login,
|
|
388
|
+
c.writer,
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
(
|
|
392
|
+
retry,
|
|
393
|
+
connecting_right_after_rebroadcast,
|
|
394
|
+
replacement_spawned,
|
|
395
|
+
login_calls,
|
|
396
|
+
connect_and_login,
|
|
397
|
+
writer,
|
|
398
|
+
) = asyncio.run(_run())
|
|
399
|
+
assert not retry.cancelled(), (
|
|
400
|
+
"a retry already mid-connect must not be cancelled by a rebroadcast"
|
|
401
|
+
)
|
|
402
|
+
assert connecting_right_after_rebroadcast is True, (
|
|
403
|
+
"the in-flight attempt must still be running right after the rebroadcast"
|
|
404
|
+
)
|
|
405
|
+
assert not replacement_spawned, (
|
|
406
|
+
"upstream must not have been asked to start a second, competing login"
|
|
407
|
+
)
|
|
408
|
+
assert login_calls == 1, "only the one, original attempt should ever connect"
|
|
409
|
+
assert connect_and_login is True, "the in-flight attempt must get to finish"
|
|
410
|
+
assert writer is not None, "the open socket from that attempt must survive"
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
def test_a_closed_light_does_not_log_back_in_through_real_account_close(
|
|
414
|
+
monkeypatch,
|
|
415
|
+
):
|
|
416
|
+
"""The same defect, through `CameraClient.async_close`, not the bare mixin.
|
|
417
|
+
|
|
418
|
+
`get_device_client` is the real dispatch seam and `async_close` is the
|
|
419
|
+
real integration-unload path; a fix proven only against a hand-built
|
|
420
|
+
`_Client` has, in this repo, once been correct code that the real
|
|
421
|
+
construction path never reached.
|
|
422
|
+
"""
|
|
423
|
+
monkeypatch.setattr(lan_retry, "_next_login_retry_delay", lambda attempt: 0.05)
|
|
424
|
+
|
|
425
|
+
calls = []
|
|
426
|
+
|
|
427
|
+
async def fake_connect(self, ip):
|
|
428
|
+
calls.append((self.device_id, ip, self._is_close))
|
|
429
|
+
|
|
430
|
+
monkeypatch.setattr(_upstream_device_client.DeviceClient, "connect", fake_connect)
|
|
431
|
+
|
|
432
|
+
async def _run():
|
|
433
|
+
token = {
|
|
434
|
+
"id": "u1",
|
|
435
|
+
"username": "a@b",
|
|
436
|
+
"password": "x",
|
|
437
|
+
"region": "us",
|
|
438
|
+
"country": "United States",
|
|
439
|
+
"accessToken": "t",
|
|
440
|
+
"refreshToken": "r",
|
|
441
|
+
}
|
|
442
|
+
client = CameraClient(None, token=token)
|
|
443
|
+
device_client = client.get_device_client(
|
|
444
|
+
{"id": "light1", "modelId": "lk.light", "name": "L", "properties": {}}
|
|
445
|
+
)
|
|
446
|
+
device_client._ip_address = "127.0.0.1"
|
|
447
|
+
await device_client.reset() # a dropped connection arms the retry
|
|
448
|
+
task = device_client._lan_retry_task
|
|
449
|
+
assert task is not None and not task.done()
|
|
450
|
+
await client.async_close() # the real integration-unload path
|
|
451
|
+
calls.clear()
|
|
452
|
+
await asyncio.sleep(0.15)
|
|
453
|
+
return calls, task
|
|
454
|
+
|
|
455
|
+
calls_after_close, task = asyncio.run(_run())
|
|
456
|
+
lan_retry._OVER_CEILING.clear()
|
|
457
|
+
assert calls_after_close == [], (
|
|
458
|
+
"a closed account's light must not open a new LAN connection"
|
|
459
|
+
)
|
|
460
|
+
assert task.cancelled() or task.done()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_log_redaction.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc48}/aidot_cameras/_vendor/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|