Martti T.

Results 364 comments of Martti T.

and probably `gzipResponseWriter.buffer` needs to be pooled as we are already pooling `gzip.Writer`

I do not think this will work - have you tested these inits? I think init is run before `main()` so the Echo instance that you are adding routes from...

I personally think you are doing it way too complicated way. I usually have "RegisterRoutes" function in package and I call it where Echo resides and if there are subgroup...

@JobberRT if you got this sorted out could you close this issue, please.

Anyway, Labstack is the company from where Echo was started but it does not mean that Labstack top domain is Echo domain or should be. So I am closing this...

First example could be fixed to set some other status code (ala http.StatusInternalServerError) when `err != nil`. It is little bit bettern than 200 but still incomplete has you application...

I can not recreate panic but I can see that when duration is same this code has race condition - both goroutines will write to response and therefore output contains...

In my opinion this problem is caused by sharing `echo.Context` instance between two goroutines and not making sure that writer used to respond header and body to client is only...

Timeout as middleware is quite complex thing to solve and if you happen to have some upstream server doing proxing (Apache/Nginx/some K8 ingress) it is easier to have them handle...