Skip to content
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

RubyFS::Stream does not restart when connection goes away #7

Open
bklang opened this issue Dec 16, 2015 · 0 comments
Open

RubyFS::Stream does not restart when connection goes away #7

bklang opened this issue Dec 16, 2015 · 0 comments

Comments

@bklang
Copy link
Member

bklang commented Dec 16, 2015

Steps to reproduce:

  1. Start a new RubyFS::Stream like this:

    RubyFS::Stream.supervise_as :fs_es, config.freeswitch.host, config.freeswitch.port, config.freeswitch.password, ->(e) { handle_event e }, true
    
    def handle_event(e)
      puts "Received event! #{e.inspect}
    end
  2. Observe events (such as Heartbeat) are successfully coming in from FreeSWITCH and being printed

  3. Restart FreeSWITCH. The following log messages are printed:

    
    [2015-12-16 08:32:04.846] INFO  RubyFS::Stream: Client socket closed due to (EOFError) end of file reached!
    [2015-12-16 08:32:04.846] DEBUG RubyFS::Stream: Finalizing stream
    
  4. After FreeSWITCH is back up, note that no more messages are being logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant