{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-amqp/bunny/issues/378","repository_url":"https://api.github.com/repos/ruby-amqp/bunny","labels_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/378/comments","events_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/378/events","html_url":"https://github.com/ruby-amqp/bunny/issues/378","id":132690878,"number":378,"title":"Timeout::Error calling channel.topic","user":{"login":"stefankroes","id":37841,"avatar_url":"https://avatars.githubusercontent.com/u/37841?v=3","gravatar_id":"","url":"https://api.github.com/users/stefankroes","html_url":"https://github.com/stefankroes","followers_url":"https://api.github.com/users/stefankroes/followers","following_url":"https://api.github.com/users/stefankroes/following{/other_user}","gists_url":"https://api.github.com/users/stefankroes/gists{/gist_id}","starred_url":"https://api.github.com/users/stefankroes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefankroes/subscriptions","organizations_url":"https://api.github.com/users/stefankroes/orgs","repos_url":"https://api.github.com/users/stefankroes/repos","events_url":"https://api.github.com/users/stefankroes/events{/privacy}","received_events_url":"https://api.github.com/users/stefankroes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-02-10T12:47:40Z","updated_at":"2016-02-10T14:06:24Z","closed_at":"2016-02-10T12:49:04Z","body":"Hi!\r\n\r\nI hope I'm not having this issue because I'm doing something wrong but I think this is an issue in bunny.\r\n\r\n```\r\nTimeout::Error: Timeout::Error in /vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/concurrent/continuation_queue.rb:33\r\n\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/concurrent/continuation_queue.rb#L33 in block in poll\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/concurrent/continuation_queue.rb#L30 in synchronize\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/concurrent/continuation_queue.rb#L30 in poll\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/channel.rb#L1774 in wait_on_continuations\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/channel.rb#L1176 in block in exchange_declare\r\n/usr/local/lib/ruby/2.2.0/timeout.rb#L88 in block in timeout\r\n/usr/local/lib/ruby/2.2.0/timeout.rb#L98 in call\r\n/usr/local/lib/ruby/2.2.0/timeout.rb#L98 in timeout\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/channel.rb#L1175 in exchange_declare\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/exchange.rb#L245 in declare!\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/exchange.rb#L83 in initialize\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/channel.rb#L344 in new\r\n/vendor/bundle/ruby/2.2.0/gems/bunny-2.2.2/lib/bunny/channel.rb#L344 in topic\r\n```\r\n\r\nBelow the stacktrace above is the following code in my project:\r\n\r\n```\r\n    def exchange\r\n      @exchange ||= channel.topic 'new_requests', durable: true\r\n    end\r\n```\r\n\r\nWe are using bunny from a bunch of sidekiq workers. When the workers are restarted, this error occurs a few times (1-3 jobs fail) and afterwards jobs start processing normally."},"comment":{"url":"https://api.github.com/repos/ruby-amqp/bunny/issues/comments/182389170","html_url":"https://github.com/ruby-amqp/bunny/issues/378#issuecomment-182389170","issue_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/378","id":182389170,"user":{"login":"stefankroes","id":37841,"avatar_url":"https://avatars.githubusercontent.com/u/37841?v=3","gravatar_id":"","url":"https://api.github.com/users/stefankroes","html_url":"https://github.com/stefankroes","followers_url":"https://api.github.com/users/stefankroes/followers","following_url":"https://api.github.com/users/stefankroes/following{/other_user}","gists_url":"https://api.github.com/users/stefankroes/gists{/gist_id}","starred_url":"https://api.github.com/users/stefankroes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefankroes/subscriptions","organizations_url":"https://api.github.com/users/stefankroes/orgs","repos_url":"https://api.github.com/users/stefankroes/repos","events_url":"https://api.github.com/users/stefankroes/events{/privacy}","received_events_url":"https://api.github.com/users/stefankroes/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T14:06:24Z","updated_at":"2016-02-10T14:06:24Z","body":"But how can it be that the timeouts occur almost instantly after restarting? Shouldn't at least 15 seconds pass before a 15 second timeout can occur?"}}