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

Conversation

marten-seemann
Copy link
Contributor

Part of #1187.

whyrusleeping and others added 30 commits September 25, 2016 01:08
It got skipped when go-reuseport got migrated to context
fix(govet): correct fmt for bool is %t
Update go-reuseport, fix context passing, publish 1.0.2
The tpt.ConnWrap is being removed from go-libp2p-transport
Timeout should only be set by using contexts.
Compatibility with the new transport interfaces
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.
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
Set source port iff using reuseport
Also, refactor out reuseport logic into a separate package.
refactor for transport interface changes
marten-seemann and others added 23 commits July 15, 2021 18:52
collect metrics in a separate go routine
chore: update go-libp2p-transport-upgrader and go-reuseport-transport
disable metrics collection on Windows
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.
use the assigned role when upgrading a sim open connection
remove the deprecated IPFS_REUSEPORT command line flag
use the transport.Upgrader interface
use the ResourceManager
It _looks_ like the standard library doesn't always wrap this error.

fixes #113
@marten-seemann marten-seemann mentioned this pull request Apr 22, 2022
65 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants