-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue when used with rails and thin server #32
Comments
Howdy. I'm the one who was working through this. Let me know if you need more detail about how this came about. |
I just tried this out running WEBrick instead of thin. The browser blocks the request and the pry-remote-em server waits for a connection. I connect and see the correct context. When I exit the pry-remote-em session, the server appears to just hang and no response makes it through.
|
Thanks for posting extra details. To use pry-remote-em as a service in your app you'll need to use a webserver that runs inside the eventmachine loop: thin rainbows, etc.,. If you can post a portion of the code you are using to run it, hopefully I can get a better handle on what is going on. I have run a pry-remote-em server inside a sinatra (thin) app with no problem. |
Also when I've run the service in a sinatra and thin app, I've been doing it with async_sinatra. |
I've been hacking on Pry to allow modification of the behavior of The one that produces the behavior originally described: Pry.config.object_pry_handler = proc do |target, *args|
EM.run { target.remote_pry_em(*args) }
end And without the inner EM.run Pry.config.object_pry_handler = proc do |target, *args|
target.remote_pry_em(*args)
end In the latter case the server continues to serve subsequent requests and closes the connection properly, but it doesn't block the request pending termination of the pry-remote-em session like I'd expect. |
Duncan, Caleb On Feb 20, 2012, at 11:07 PM, Duncan Beevers wrote:
|
It's an issue a user (on #pry) encountered, so i'll just paste some of the chatlog :)
Hope that's enough for you to figure out what's going on! (if not i can request the user provide more info the next i see him :)
The text was updated successfully, but these errors were encountered: