Skip to content

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

@bklang

Description

@bklang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions