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

move go-tcp-transport here #1418

Merged
merged 85 commits into from
Apr 22, 2022
Merged

move go-tcp-transport here #1418

merged 85 commits into from
Apr 22, 2022

Commits on Sep 25, 2016

  1. Configuration menu
    Copy the full SHA
    7c54aa9 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2016

  1. fix: use DialContext of go-reuseport

    It got skipped when go-reuseport got migrated to context
    Kubuxu committed Oct 3, 2016
    Configuration menu
    Copy the full SHA
    8df46c8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa9e1d0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3 from libp2p/fit/govet/one

    fix(govet): correct fmt for bool is %t
    whyrusleeping committed Oct 3, 2016
    Configuration menu
    Copy the full SHA
    1b26b1f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8f3e533 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #2 from libp2p/feat/dep/go-reuseport

    Update go-reuseport, fix context passing, publish 1.0.2
    whyrusleeping committed Oct 3, 2016
    Configuration menu
    Copy the full SHA
    0cf5a54 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2016

  1. update deps

    whyrusleeping committed Oct 5, 2016
    Configuration menu
    Copy the full SHA
    9532d3f View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2017

  1. Configuration menu
    Copy the full SHA
    e377041 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2017

  1. Configuration menu
    Copy the full SHA
    cfef65c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59530f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2017

  1. Configuration menu
    Copy the full SHA
    53da0c0 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2017

  1. Configuration menu
    Copy the full SHA
    af1302a View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2017

  1. Configuration menu
    Copy the full SHA
    aaf9fcb View commit details
    Browse the repository at this point in the history
  2. replace tpt.ConnWrap by a tcpConn

    The tpt.ConnWrap is being removed from go-libp2p-transport
    marten-seemann committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    d29927f View commit details
    Browse the repository at this point in the history
  3. remove the timeoutOpt

    Timeout should only be set by using contexts.
    marten-seemann committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    d7cda66 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    21fd167 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2017

  1. Merge pull request #8 from marten-seemann/master

    Compatibility with the new transport interfaces
    Stebalien committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    3c94e56 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2017

  1. Revert "use the renamed transport interfaces"

    This reverts commit 21fd167.
    Stebalien committed Oct 20, 2017
    Configuration menu
    Copy the full SHA
    a7ae57b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4deba0 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2017

  1. Merge pull request #11 from libp2p/revert/conn-interfaces

    Revert the new Conn interfaces
    Stebalien committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    7ead9fd View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2017

  1. update go-reuseport

    1. Migrate to libp2p repo.
    2. Pull in fixes for edge platforms. Related: use `x/sys` instead of `syscall`
       when possible.
    3. Pull in less complicated and slightly faster dial logic.
    Stebalien committed Nov 9, 2017
    Configuration menu
    Copy the full SHA
    0553274 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #9 from libp2p/fix/source-address

    fix source address not being set in non REUSEPORT dialer
    Stebalien committed Nov 9, 2017
    Configuration menu
    Copy the full SHA
    11a8aa1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #13 from libp2p/feat/update-reuseport

    update go-reuseport
    Stebalien committed Nov 9, 2017
    Configuration menu
    Copy the full SHA
    afd5a6e View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2017

  1. gx publish 1.2.6

    Stebalien committed Dec 4, 2017
    Configuration menu
    Copy the full SHA
    5ec6564 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2017

  1. Revert "fix source address not being set in non REUSEPORT dialer"

    This reverts commit af1302a.
    
    If we do this, we end up using the source *port* for dialing. That's not what we
    want when not using reuseport.
    
    fixes #19
    Stebalien committed Dec 28, 2017
    Configuration menu
    Copy the full SHA
    ec33afb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69b7572 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #20 from libp2p/fix/19

    Set source port iff using reuseport
    Stebalien committed Dec 28, 2017
    Configuration menu
    Copy the full SHA
    1d47d21 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2018

  1. refactor for transport interface changes

    Also, refactor out reuseport logic into a separate package.
    Stebalien committed Jun 5, 2018
    Configuration menu
    Copy the full SHA
    4784a35 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2018

  1. Merge pull request #23 from libp2p/feat/refactor

    refactor for transport interface changes
    Stebalien committed Jun 6, 2018
    Configuration menu
    Copy the full SHA
    df410f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2018

  1. add a TCP connect timeout

    Stebalien committed Jun 8, 2018
    Configuration menu
    Copy the full SHA
    bd1a6b0 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2018

  1. Configuration menu
    Copy the full SHA
    e8b9e0d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #27 from cannium/master

    Deprecate IPFS_REUSEPORT, use LIBP2P_TCP_REUSEPORT
    Stebalien committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    a2176a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2019

  1. set linger to 0 for both inbound and outbound connections

    This causes us to send RST packets instead of FIN packets when closing
    connections and means connections immediately enter the "reset" state instead of
    entering the TIME-WAIT state.
    
    Importantly, this means we can immediately reuse the 5-tuple and reconnect.
    Stebalien committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    87f331a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #36 from libp2p/fix/linger

    set linger to 0 for both inbound and outbound connections
    Stebalien committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    2785529 View commit details
    Browse the repository at this point in the history
  3. chore: remove inline interface

    (@vyzo CR)
    Stebalien committed Apr 4, 2019
    1 Configuration menu
    Copy the full SHA
    a517f4d View commit details
    Browse the repository at this point in the history
  4. Merge pull request #38 from libp2p/fix/remove-inline-interface

    chore: remove inline interface
    Stebalien committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    7972f88 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2019

  1. Configuration menu
    Copy the full SHA
    b06b0e6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #39 from libp2p/dep/import-smux

    dep: import go-libp2p-mplex into the libp2p org
    Stebalien committed May 22, 2019
    Configuration menu
    Copy the full SHA
    e083cfd View commit details
    Browse the repository at this point in the history

Commits on May 26, 2019

  1. Configuration menu
    Copy the full SHA
    ed7828c View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2019

  1. Configuration menu
    Copy the full SHA
    cea811c View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. Merge pull request #42 from libp2p/feat/plaintext-2

    Use new constructor for insecure transport in tests
    yusefnapora committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    70f680f View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. Configuration menu
    Copy the full SHA
    503a78e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #61 from libp2p/fix/no-dns

    fix: don't allow dialing DNS addresses
    Stebalien committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    4dbbc0a View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2021

  1. Configuration menu
    Copy the full SHA
    d9fec43 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #72 from libp2p/stop-using-deprecated-go-multiaddr…

    …-net
    
    stop using the deprecated go-multiaddr-net package
    marten-seemann committed Feb 16, 2021
    Configuration menu
    Copy the full SHA
    7bdb8a4 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. enable TCP keepalives

    marten-seemann committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    2f74f82 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2021

  1. Configuration menu
    Copy the full SHA
    c585e14 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #73 from libp2p/keep-alives

    enable TCP keepalives
    marten-seemann committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    e5e4091 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. Configuration menu
    Copy the full SHA
    3cf9d58 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0006048 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2021

  1. Merge pull request #75 from libp2p/prometheus

    expose some Prometheus metrics
    marten-seemann committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    cae447e View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2021

  1. Configuration menu
    Copy the full SHA
    7fae0d6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #76 from libp2p/bandwidth-metrics

    add bandwidth-related metrics (for Linux and OSX)
    marten-seemann committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    769c219 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Configuration menu
    Copy the full SHA
    ff00d9c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #77 from libp2p/fix-staticcheck

    use log.Warn instead of log.Warning
    Stebalien committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    ed9ea79 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Skip SetKeepAlivePeriod call on OpenBSD

    OpenBSD does not have a user-settable per-socket TCP keepalives. This changes
    tryKeepAlive to skip attempting set it when on OpenBSD.
    
      https://github.com/golang/go/blob/master/src/net/tcpsockopt_openbsd.go#L13-L14
    
    This prevents thousands of `log.Errorf("Failed set keepalive period: %s",
    err)`'s from happening.
    qbit committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    4eb467a View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Merge pull request #80 from qbit/openbsd_keepalive

    Skip SetKeepAlivePeriod call on OpenBSD
    marten-seemann committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    464f1b3 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2021

  1. Configuration menu
    Copy the full SHA
    c4c5e0f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. fix: avoid logging "invalid argument" errors when setting keepalive

    This can happen if, e.g., the connection is already dead. I think?
    See https://discuss.ipfs.io/t/tcp-keepalive-and-setsockopt-invalid-argument/11725
    
    Really, I don't know _what_ was causing this, but there's nothing we can
    do about it.
    Stebalien committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    15dab89 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #83 from libp2p/fix/noisy-log

    fix: avoid logging "invalid argument" errors when setting keepalive
    Stebalien committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    2537847 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Configuration menu
    Copy the full SHA
    40bda4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e520e28 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #82 from libp2p/fix-unbounded-state

    collect metrics in a separate go routine
    marten-seemann committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    66cb18e View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2021

  1. Configuration menu
    Copy the full SHA
    302c1b5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #84 from libp2p/update-deps

    chore: update go-libp2p-transport-upgrader and go-reuseport-transport
    Stebalien committed Jul 25, 2021
    Configuration menu
    Copy the full SHA
    501872d View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. Configuration menu
    Copy the full SHA
    873a3c5 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Configuration menu
    Copy the full SHA
    8296ce3 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. Merge pull request #93 from libp2p/disable-metrics-on-windows

    disable metrics collection on Windows
    marten-seemann committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    3a5db3b View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2021

  1. simplify dial timeout context

    From the documentation:
    WithDeadline returns a copy of the parent context with the deadline
    adjusted to be no later than d. If the parent's deadline is already
    earlier than d, WithDeadline(parent, d) is semantically equivalent to
    parent.
    marten-seemann committed Sep 18, 2021
    Configuration menu
    Copy the full SHA
    a738e01 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2021

  1. Merge pull request #94 from libp2p/simplify-dial-context

    simplify dial timeout context
    marten-seemann committed Sep 19, 2021
    Configuration menu
    Copy the full SHA
    6e206c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. Configuration menu
    Copy the full SHA
    650b013 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2021

  1. Merge pull request #97 from libp2p/update-go-log

    chore: update go-log to v2
    marten-seemann committed Sep 25, 2021
    Configuration menu
    Copy the full SHA
    35074ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e9c99b7 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #95 from libp2p/sim-open

    use the assigned role when upgrading a sim open connection
    marten-seemann committed Sep 25, 2021
    Configuration menu
    Copy the full SHA
    a054232 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    79d3f04 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    edff896 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2021

  1. Configuration menu
    Copy the full SHA
    7fa06d3 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2021

  1. Merge pull request #104 from libp2p/remove-deprecated-ipfs-reuseport

    remove the deprecated IPFS_REUSEPORT command line flag
    marten-seemann committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    cd2c3d8 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2022

  1. Configuration menu
    Copy the full SHA
    c747de3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #111 from libp2p/upgrader-interface

    use the transport.Upgrader interface
    marten-seemann committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    69d3c45 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2022

  1. Configuration menu
    Copy the full SHA
    7d5a5f8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #110 from libp2p/rcmgr

    use the ResourceManager
    marten-seemann committed Jan 18, 2022
    Configuration menu
    Copy the full SHA
    ece76e8 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2022

  1. fix: drop raw EINVAL (from keepalives) errors as well (#115)

    It _looks_ like the standard library doesn't always wrap this error.
    
    fixes #113
    Stebalien committed Feb 6, 2022
    Configuration menu
    Copy the full SHA
    9d3f10b View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2022

  1. Configuration menu
    Copy the full SHA
    e2ceabf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfc3a3f View commit details
    Browse the repository at this point in the history