Hello Mark,
I think this post has hint on how to diagnose this case : How to extend the Pry/Debugger timeout in Phoenix (shell process exited with reason: shutdown).
1-2 seconds looks short. What client do you use?
Server has its own timeout, default is 60s.