Skip to content

fix: throw an exception when an http request takes more than 5s#11

Open
oliverpool wants to merge 1 commit into
DistriNet:mainfrom
oliverpool:http-timeout
Open

fix: throw an exception when an http request takes more than 5s#11
oliverpool wants to merge 1 commit into
DistriNet:mainfrom
oliverpool:http-timeout

Conversation

@oliverpool

Copy link
Copy Markdown
Contributor

When a server only listens on port 443, an http request on port 80 will hang forever, preventing the test from going further.

Disclaimer: I have very little experience with C#/.NET and used an LLM to recommend a fix.

When a server only listens on port 443, an http request on port 80 will
hang forever, preventing the test from going further.
@pieterphilippaerts pieterphilippaerts self-assigned this Jun 10, 2026
@pieterphilippaerts

Copy link
Copy Markdown
Member

I'm putting this on my TODO list; I like the idea, but I seem to remember that some authorization servers in our survey waited more than 5 seconds after which they successfully completed the request (presumably as part of a DoS-protection/anti-brute-force mechanism). So instead of just killing the connection after 5 seconds, I'm thinking of making this a configurable option via the site settings...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants