2 ms·
>1) something with thread-local storage saving the the auth info in the request handler, and then coroutines or async code that is overwriting that thread-local
by gruez 6y ago
>1) something with thread-local storage saving the the auth info in the request handler, and then coroutines or async code that is overwriting that thread-local with info from a new request before the old request has finished.
AFAIK github is written in ruby. Does it even have thread local storage?
- ghiculescu 6y agoYes, at least in Rails you see this a bit: > Thread.current[:key] = value Typically you’d only have one request at a time on each thread though. So your examples feel unlikely. Looking forward to finding out what happened here.