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

Pre-bind sockets on creation #36

Closed
wants to merge 2 commits into from

Commits on May 13, 2015

  1. Pre-bind sockets on creation

    When sending a datagram, non-bound sockets require a DNS lookup.
    Instead, bind the socket to the given addresses when creating the
    socket.
    
    Also, lazily create the socket connections, which allows the
    notify methods to capture the exceptions as expected.  If the sockets
    are created and bound at initialize, an exception would occur then.
    
    Lastly, allow resetting the connections if the addresses are changed.
    
    Fixes graylog-labs#31
    markglenn committed May 13, 2015
    Configuration menu
    Copy the full SHA
    6ae0881 View commit details
    Browse the repository at this point in the history
  2. Fix test for Ruby 1.8.7

    markglenn committed May 13, 2015
    Configuration menu
    Copy the full SHA
    85e2fda View commit details
    Browse the repository at this point in the history