You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When I changed request body,the program enters an endless loop #209
I don't see any loop in your logs, the context_id is clearly different across those log entries.
The problem with your code is that the key-value store is global, not local to a request, so "changed" persists across requests, which probably breaks your logic.
I have a very similar issue with the (unchanged) http_auth_random example - sending requests to localhost:10000/headers will always return "Access forbidden.". When I examine the logs I can see that multiple passes are made through on_http_request_headers until it hits send_http_response. The below were for a single request from the client:
changed the title [-]When I changed request body,he program enters an endless loop[/-][+]When I changed request body,the program enters an endless loop[/+]on Jun 24, 2024
Activity
PiotrSikora commentedon Sep 25, 2023
I don't see any loop in your logs, the
context_idis clearly different across those log entries.The problem with your code is that the key-value store is global, not local to a request, so
"changed"persists across requests, which probably breaks your logic.Fengxq2014 commentedon Sep 27, 2023
I only sent one request, and the log began to print indefinitely
paulgreenfield1983 commentedon Nov 23, 2023
I have a very similar issue with the (unchanged) http_auth_random example - sending requests to localhost:10000/headers will always return "Access forbidden.". When I examine the logs I can see that multiple passes are made through on_http_request_headers until it hits send_http_response. The below were for a single request from the client:
[-]When I changed request body,he program enters an endless loop[/-][+]When I changed request body,the program enters an endless loop[/+]