-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Double Responses and one without any Response #1908
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
You are not using any of the Echo own middlewares? Are you passing Echo context to your services/functions from handler and do work in different goroutines? For example: after request is completed |
Could something like this be a problem?
|
Yes, I think so. When Lines 625 to 652 in f20820c
on line You should never let |
ok thanks. let me go through my code base and I look if my double Response are going away. 👍 |
just to be sure - you are not using |
no we don't :) |
so we gone through our code and fixed the midllewares who are exposing the ctx from Echo to a Middleware Context. Maybe as a suggestion, you wanna add a hint to the docs? or was there already one? |
From my site this would be done 👍 . Thanks :) |
Ok, I'll close this issue for now and I created TODO in echo documentation repo. |
Issue Description
Currently we are facing a issue were two requests get combined in one Response. One Response keeps empty and the other one holds 2 Responses.
It often occurs when you submit 2 Request at the same time to echo from the same session and host. Then somehow the Requests gets combined.
Has someone a Idea why that occurs.
Checklist
Some Implementation Stuff:
we just used the standard Stuff from echo nothing special.
The Middleware we have is just a one wo stores data into redis back and forth.
Version/commit
github.com/labstack/echo/v4 v4.3.0
Code
I can't really post any code, because I don't know what could issue something like that. As a side note we already gone thorugh the code and checked for potentially variables or poitners who are sett incorrectly. We also save all the Data for a User in the Echo Object with c.Set and c.Get
The text was updated successfully, but these errors were encountered: