{"action":"created","issue":{"url":"https://api.github.com/repos/rails/spring/issues/265","labels_url":"https://api.github.com/repos/rails/spring/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/rails/spring/issues/265/comments","events_url":"https://api.github.com/repos/rails/spring/issues/265/events","html_url":"https://github.com/rails/spring/issues/265","id":28216636,"number":265,"title":"Spring hangs when it can't connect to the server.","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-02-25T01:59:57Z","updated_at":"2015-07-16T04:37:03Z","closed_at":"2014-02-26T13:53:29Z","body":"It should have a timeout.\r\n\r\n```\r\n^C/Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client/run.rb:47:in `gets': Interrupt\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client/run.rb:47:in `verify_server_version'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client/run.rb:19:in `call'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client/command.rb:7:in `call'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client/rails.rb:23:in `call'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client/command.rb:7:in `call'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/client.rb:26:in `run'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/bin/spring:32:in `<top (required)>'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/binstub.rb:11:in `load'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.1/lib/spring/binstub.rb:11:in `<top (required)>'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom /Users/justin/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom /Users/justin/workspace/blacklight/spec/internal/bin/spring:16:in `<top (required)>'\r\n\tfrom bin/rails:3:in `load'\r\n\tfrom bin/rails:3:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/spring/issues/comments/121826579","html_url":"https://github.com/rails/spring/issues/265#issuecomment-121826579","issue_url":"https://api.github.com/repos/rails/spring/issues/265","id":121826579,"user":{"login":"ryanjones","id":350391,"avatar_url":"https://avatars.githubusercontent.com/u/350391?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanjones","html_url":"https://github.com/ryanjones","followers_url":"https://api.github.com/users/ryanjones/followers","following_url":"https://api.github.com/users/ryanjones/following{/other_user}","gists_url":"https://api.github.com/users/ryanjones/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjones/subscriptions","organizations_url":"https://api.github.com/users/ryanjones/orgs","repos_url":"https://api.github.com/users/ryanjones/repos","events_url":"https://api.github.com/users/ryanjones/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjones/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T04:37:03Z","updated_at":"2015-07-16T04:37:03Z","body":"Just ran into this w/ spring (1.3.6) & rails (4.2.3). \r\n\r\n@jonleighton - Here's the steps to reproduce the bug (make sure to have pry installed in your rails app):\r\n1. Put a binding.pry in config/environments/development.rb's config block\r\n2. Run ```bin/rails c``` (it will hang)\r\n3. Open a new terminal and kill that rails console process\r\n4. Remove binding.pry from config/environments/development.rb \r\n5. Run ```bin/rails c``` (it will hang forever) - Ctrl-C will drop the same backtrace as above\r\n\r\nLet me know if you need any other details. I've been able to replicate it a few times now. ```spring stop``` worked for me and allowed me to to run ```bin/rails c``` successfully."}}