Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Timeouts for individual requests #945

Open
enkelmedia opened this issue Jan 5, 2023 · 0 comments
Open

Timeouts for individual requests #945

enkelmedia opened this issue Jan 5, 2023 · 0 comments

Comments

@enkelmedia
Copy link

Hi!

Not sure where to post this so I ended up here. I've downloaded the source code and tried to the best of my ability to understand but I can't seem to find an answer to my question on my own.

I'm using Titanium as a proxy when I'm crawling websites, I set it up as a proxy for Chrome and then run Chrome using the W3C WebDriver protocol. Sometimes a website have assets that takes very long to load and I would like to send an "abort time" for these assets. So let's say I'm loading a page and wait for 10 seconds, then I would like all connections to be dropped and maybe return a 400 or 404 or something.

So I'm basically looking for a way to configure an individual request to timeout if the upstream does not respond in X seconds. I could also be the same timeout for all requests. I've looked at the "connection timeout"-settings on the ProxyServer and also looked for some kind of timeout in the "BeforeRequest"-event but without any luck.

Does anyone know if there is a way to do this or should I just give up?

Thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant