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

TaskLocal globals recycled with each new connection #753

Closed
etcimon opened this Issue Jul 30, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@etcimon
Contributor

etcimon commented Jul 30, 2014

I'm having an issue of data leakage from one to another connection through a TaskLocal variable. I was assuming the HTTP server would clean up this data but it's not the case. I think there should be a routine to deinitialize a fiber's TaskLocal data on disconnect but it's nowhere to be found.

etcimon added a commit to etcimon/vibe.d that referenced this issue Jul 30, 2014

etcimon added a commit to etcimon/vibe.d that referenced this issue Jul 30, 2014

etcimon added a commit to etcimon/vibe.d that referenced this issue Jul 30, 2014

Zerofill m_fill for safe fiber recycling, fixes #753
Reset initialization vector also

Added destructor support

Changed destructor to function and pointer

@s-ludwig s-ludwig closed this in 8ad1952 Jul 30, 2014

s-ludwig added a commit that referenced this issue Jul 30, 2014

Merge pull request #754 from etcimon/tls-safety
Implement safe fiber recycling, fixes #753
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment