Skip to content

Conversation

@appleboy
Copy link
Member

  • Add a shell script to perform 5 concurrent HTTP requests to the /long endpoint and wait for all to complete
  • Introduce a new Go example that sets up a Gin web server with a timeout middleware and a /long endpoint that simulates a long-running request
  • Configure the timeout middleware to trigger after 100 microseconds and log a timeout error if it occurs
  • Add project dependencies and replace directive for local development of the timeout middleware

fixed #73

- Add a shell script to perform 5 concurrent HTTP requests to the /long endpoint and wait for all to complete
- Introduce a new Go example that sets up a Gin web server with a timeout middleware and a /long endpoint that simulates a long-running request
- Configure the timeout middleware to trigger after 100 microseconds and log a timeout error if it occurs
- Add project dependencies and replace directive for local development of the timeout middleware

Signed-off-by: Bo-Yi Wu <[email protected]>
@appleboy appleboy merged commit 8ae792b into master Jul 18, 2025
4 of 5 checks passed
@appleboy appleboy deleted the example3 branch July 18, 2025 05:18
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.

Panic and repeat request when use this timeout midleware with http.Server

2 participants