-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Function looping router.go#Find #1493
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
Comments
in 4.1.13 doesn't has this problem |
I have the same issue, it seems the problem comes with the addition of the following code in router.go (line 417):
|
I hope to look into that this week, this is probably an unintentional loop caused by the backtracking in the path for parametrized routes as noted by @rdluffy Our example should allow to reproduce that in the unit tests and fix the issue. Let's see if that is the case. |
I tried to reproduce the issue in the router unit tests, but it is working there. |
The issue was reproducable after all and a test was added for it. |
Issue Description
Example code has the one registered route
when request uri is
/assets/tree/free
application is looping...if application is simple then another requests are processing, but in complex application it's don't answer to any requests and need
kill -9 pid
current request deadlocking...
Checklist
very similar issue#1461
Expected behaviour
404 {"message":"Not Found"}
Actual behaviour
Steps to reproduce
curl http://localhost:1323/assets/tree/free
Working code to debug
Version/commit
4.1.14
The text was updated successfully, but these errors were encountered: