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

Add resolved udp connection type, continually resolve dns names in background #520

Merged
merged 25 commits into from Jul 9, 2020

Commits on Jun 26, 2020

  1. Add resolved udp connection type, continually resolve dns names in

    background
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 26, 2020
    Copy the full SHA
    7f1085d View commit details
    Browse the repository at this point in the history
  2. Be sure to set buffer bytes width on new connections.

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 26, 2020
    Copy the full SHA
    3690bcb View commit details
    Browse the repository at this point in the history
  3. Lock when checking if resolved addr is new.

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 26, 2020
    Copy the full SHA
    e7e7b32 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Fixes from review comments. Dont return error if UDPConn fails on sta…

    …rtup
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 29, 2020
    Copy the full SHA
    7994cdf View commit details
    Browse the repository at this point in the history
  2. Fix failing test. Apparently the linux kernel returns the sockopt val

    doubled.
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 29, 2020
    Copy the full SHA
    66b7ec4 View commit details
    Browse the repository at this point in the history
  3. Use atomic ops to manage bufferBytes instead of locking mutex

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 29, 2020
    Copy the full SHA
    fc0d3eb View commit details
    Browse the repository at this point in the history
  4. Fix buffer bytes assert because sock opt value is not guaranteed to b…

    …e exactly twice
    
    set val
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 29, 2020
    Copy the full SHA
    c47cc4b View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2020

  1. Remove intermediate init helpers, initialize close chann in struct

    initialization
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jun 30, 2020
    Copy the full SHA
    aaf0c9b View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2020

  1. Fixes based on comments, more tests for udp_client.go, and test for

    write retry
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    0264dd8 View commit details
    Browse the repository at this point in the history
  2. Run make fmt

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    8ea3b31 View commit details
    Browse the repository at this point in the history
  3. Remove unused struct field

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    d4f29aa View commit details
    Browse the repository at this point in the history
  4. Fix lint error

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    fd62566 View commit details
    Browse the repository at this point in the history
  5. Add test for new conn established when host record changes

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    d70dc93 View commit details
    Browse the repository at this point in the history
  6. Fix comment typo

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    4161d17 View commit details
    Browse the repository at this point in the history
  7. Add test for failed write retry

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    0d18d0d View commit details
    Browse the repository at this point in the history
  8. Add test calling NewAgentClientUDP

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    044e26a View commit details
    Browse the repository at this point in the history
  9. Remove sleep on last try evaluating connection condition

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 3, 2020
    Copy the full SHA
    9c36339 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2020

  1. Rename resolved udp conn to reconnecting udp conn, add opt-out option

    for reconnecting client and option for reconnect interval
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 7, 2020
    Copy the full SHA
    70bff5e View commit details
    Browse the repository at this point in the history
  2. Remove irrelevant comment, fix transport max packet size regression

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 7, 2020
    Copy the full SHA
    3aedb36 View commit details
    Browse the repository at this point in the history
  3. Add panic in case the test server listen or srv fails unexpectedly

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 7, 2020
    Copy the full SHA
    f9de33b View commit details
    Browse the repository at this point in the history
  4. Add coverage for new env vars

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 7, 2020
    Copy the full SHA
    19fb557 View commit details
    Browse the repository at this point in the history
  5. Run make fmt

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 7, 2020
    Copy the full SHA
    3003b3c View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Add back constants, add helper for generating a mock udp addr, require

    all assertions of udp write to succeed
    
    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 8, 2020
    Copy the full SHA
    3e254f0 View commit details
    Browse the repository at this point in the history
  2. Remove local agent constants from utils

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 8, 2020
    Copy the full SHA
    2e4ea48 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2020

  1. Move no error requirement into mock udp addr constructor

    Signed-off-by: Trevor Foster <trevor.foster@hotmail.ca>
    terev committed Jul 9, 2020
    Copy the full SHA
    da03468 View commit details
    Browse the repository at this point in the history