Skip to content
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

[BUG] the context ptr in socketWrapper may be modified #114

Open
DOLLook opened this issue Jul 1, 2024 · 0 comments
Open

[BUG] the context ptr in socketWrapper may be modified #114

DOLLook opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@DOLLook
Copy link

DOLLook commented Jul 1, 2024

when call Upgrade(ctx *context.Context, idGen IDGenerator, s *neffos.Server) *neffos.Conn{}. The iris context will be cached in the &socketWrapper{Socket: socket,ctx: ctx}. But it may be modified to other http request context. And I search the ctx set to the socketWrapper, only the Upgrade set it. Why the context may changed.

@DOLLook DOLLook added the bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants