Files
crawl4ai/crawl4ai
Soham Kukreti 34c0996ee4 fix: Add CDP endpoint verification with exponential backoff for managed browsers (#1445)
browser_manager:
- Add CDP endpoint verification with retry logic and exponential backoff
- Call verification before connecting to CDP in `start()` method
- Graceful handling of timing issues during browser startup

test_cdp_strategy:
- Fix cookie persistence test by adding storage state management
- Fix session management test to work with managed browser architecture
- Add comprehensive CDP timing tests covering:
  - Fast startup scenarios
  - Delayed browser startup simulation
  - Exponential backoff behavior validation
  - Concurrent browser connections
  - Stress testing with multiple successive startups
  - Retry count verification

Impact:
- Eliminates browser startup failures due to CDP timing issues
- Provides robust fallback with automatic retries
- Maintains fast startup when CDP is immediately available
- Comprehensive test coverage ensures reliability

Resolves CDP connection timing issues in managed browser mode.
2025-09-29 19:31:09 +05:30
..
2025-02-19 14:13:17 +08:00
2025-08-04 19:02:01 +08:00
2025-04-11 00:44:43 +08:00
2025-01-13 19:19:58 +08:00
2025-07-08 11:46:13 +02:00
2025-01-13 19:19:58 +08:00
2025-01-13 19:19:58 +08:00
2025-08-04 19:02:01 +08:00