Code Monkey home page Code Monkey logo

msngr's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

msngr's Issues

Can not connect to redis

Sometimes I have the 'Can not connect to redis' in listen! method
After six reconnects attempts it leads to Puma web server crash.
After restarting puma and msngr works fine some time. But can suddenly crash.

Messenger error occurred:
Redis::CannotConnectError
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:332:in `rescue in establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:318:in `establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
/var/ww
is::CannotConnectError
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:332:in `rescue in establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:318:in `establish_connection'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:280:in `with_reconnect'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:93:in `connect'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:351:in `ensure_connected'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:208:in `block in process'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:293:in `logging'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:207:in `process'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:127:in `block in call_loop'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:267:in `with_socket_timeout'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:274:in `without_socket_timeout'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:126:in `call_loop'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/subscribe.rb:35:in `subscription'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/subscribe.rb:16:in `psubscribe'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2718:in `_subscription'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2113:in `block in psubscribe'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:57:in `block in synchronize'
/home/tritium/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2112:in `psubscribe'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/clients/redis.rb:28:in `on_message'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:76:in `listen'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:57:in `block (2 levels) in listen!'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:55:in `loop'
/var/www/tritium/current/vendor/bundle/ruby/2.2.0/gems/msngr-0.0.1/lib/msngr/messenger.rb:55:in `block in listen!'
Restarting..

Heroku?

Hi guys,
I'm on a free plan on heroku, running a rails-api app, on puma using msngr and redis to go (free), and basically is no working.
anyone has tried it on Heroku? is having any issue?

This requires Ruby 2.1?

Can you update the minimum requirements for this gem please?

Also, is there support for subscribe notifications?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.