Closed alkalinecoffee closed 4 years ago
It's been a while since I've been in these issues (so sorry!), but I've reproduced the problem. @async_requests
was treated as threadsafe, and isn't. I've swapped it for a Queue, which seems to address the issue.
Thanks!!
I'm working on a simple rack app that makes two requests in parallel and load testing it with
wrk
. However, I'm often seeing the following error:And at times see:
I'm seeing this when standing up a rack app with the following sample code:
And using
wrk
to put some load on this app:wrk -d10 -t10 -c10 http://localhost:9292
.Any suggestions on avoiding this?