mirror of
https://github.com/9prodhi/camoufox-rs.git
synced 2026-08-19 00:00:58 +00:00
b1f5c43bc2
Previously the CLI --timeout flag was dropped at Instance::navigate (parameter declared _timeout, never forwarded) and the protocol-layer Client::send blocked on bare rx.recv() with no deadline. A Content-Disposition: attachment navigation produced no response, the pending slot leaked, and the daemon needed kill -9. This commit: - Adds ProtocolError::Timeout variant. - Adds Client::send_with_timeout that uses rx.recv_timeout and frees the pending slot on timeout. - Defaults Client::send to a 60s timeout (no call can hang forever). - Adds a timeout parameter to MainFrame::navigate. - Forwards Instance::navigate's CLI timeout through to the protocol layer. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>