Skip to content

Bind to port during #register #80

Description

@yaauie

When we fail to bind to the port, we should propagate the failure to prevent the pipeline from starting.

With this ruby-socket-based plugin, the pattern should be:

  • bind both TCP and UDP ports in #register, without invoking TCPServer#accept or UDPSocket#recvfrom
  • invoke both TCPServer#accept and UDPSocket#recvfrom in #run to process events

Relates: elastic/logstash#18711

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