vapor / http

🚀 Non-blocking, event-driven HTTP built on Swift NIO.
MIT License
240 stars 65 forks source link

Fix RFC1123 Race Conditions #294

Closed andreigherghe closed 6 years ago

andreigherghe commented 6 years ago

Under full concurrent load, RFC1123 can crash due to two race conditions:

gmtime race: https://pastebin.com/ktyTWQEM

cachedTimeComponents race:

screen shot 2018-05-28 at 01 55 45

Thanks @MrMage and @grundoon for the support!

penny-coin commented 6 years ago

Hey @andreigherghe, you just merged a pull request, have a coin!

You now have 1 coins.