Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect and prevent infinite loops #105

Open
mrahs opened this issue Sep 19, 2024 · 0 comments
Open

Detect and prevent infinite loops #105

mrahs opened this issue Sep 19, 2024 · 0 comments

Comments

@mrahs
Copy link
Contributor

mrahs commented Sep 19, 2024

Direct requests to the proxy cause an infinite loop:

./proxy --http_addr=localhost:8082 -verbose &
curl http://localhost:8082

2024/09/19 20:44:47 [001] INFO: Got request / 127.0.0.1:8082 GET /
2024/09/19 20:44:47 Nonproxy handler: 127.0.0.1:8082
2024/09/19 20:44:47 [002] INFO: Got request / 127.0.0.1:8082 GET http://127.0.0.1:8082/
2024/09/19 20:44:47 [002] INFO: Sending request GET http://127.0.0.1:8082/
2024/09/19 20:44:47 [003] INFO: Got request / 127.0.0.1:8082 GET /
2024/09/19 20:44:47 Nonproxy handler: 127.0.0.1:8082
2024/09/19 20:44:47 [004] INFO: Got request / 127.0.0.1:8082 GET http://127.0.0.1:8082/
2024/09/19 20:44:47 [004] INFO: Sending request GET http://127.0.0.1:8082/
2024/09/19 20:44:47 [005] INFO: Got request / 127.0.0.1:8082 GET /
2024/09/19 20:44:47 Nonproxy handler: 127.0.0.1:8082
2024/09/19 20:44:47 [006] INFO: Got request / 127.0.0.1:8082 GET http://127.0.0.1:8082/
2024/09/19 20:44:47 [006] INFO: Sending request GET http://127.0.0.1:8082/
2024/09/19 20:44:47 [007] INFO: Got request / 127.0.0.1:8082 GET /
...
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

No branches or pull requests

1 participant