mendableai / firecrawl

🔥 Turn entire websites into LLM-ready markdown or structured data. Scrape, crawl and extract with a single API.
https://firecrawl.dev
GNU Affero General Public License v3.0
19.13k stars 1.48k forks source link

feat: added timeouts to requests to prevent blocking requests #890

Open RRua opened 2 weeks ago

RRua commented 2 weeks ago

Pull Request: Add Optional Timeout Parameters to HTTP Requests

Summary

This pull request introduces optional timeout parameters to all functions in the FirecrawlApp class that make HTTP requests. This enhancement improves the robustness and resilience of the application by ensuring that calls do not hang indefinitely, which helps prevent resource starvation and supports better error handling.

Key Changes

Benefits