We have a requirement for our web server to respond to a callback during the execution of a web request to another server.
Due to Rack::Lock and Rails, the thin web server is reduced to a single thread and therefore the callback is blocked which results in a deadlock.
I've added config.threadsafe! to remove Rack::Lock and changed to the Puma web server which handles multiple threads. This now works when starting the web servers from the console.
However, under the RubyMine debugger it seems to still be reduced to a single thread.
Is there anyway to debug this situation?