Request hangs (no response), the server process has 100% CPU usage when route has a path parameter (e.g.: "/users/:id") and URL is terminated with "/"
404 error
Request hangs, causing the server process to use 100% CPU
curl localhost:8080/users/123/
package main
import (
"github.com/labstack/echo/v4"
"net/http"
)
func main() {
e := echo.New()
e.GET("/users/:id", func(c echo.Context) error {
id := c.Param("id")
return c.String(http.StatusOK, "id=" + id)
})
e.Logger.Fatal(e.Start(": 8080"))
}
v4.1.14
This is a duplicate of #1503 and #1493 which is fixed by PR #1501 already.
For a workaround see #1503, will be fixed in the next release.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
This is a duplicate of #1503 and #1493 which is fixed by PR #1501 already.
For a workaround see #1503, will be fixed in the next release.