Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-tcp-transport
Commits
87e91f69
Commit
87e91f69
authored
Jul 11, 2021
by
tavit ohanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial port - tests fail for using insecure transports
parent
9d0361a1
Pipeline
#734
failed with stages
in 1 minute and 36 seconds
Changes
6
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
114 additions
and
135 deletions
+114
-135
.gitlab-ci.yml
.gitlab-ci.yml
+35
-0
go.mod
go.mod
+9
-10
go.sum
go.sum
+57
-113
reuseport.go
reuseport.go
+1
-1
tcp.go
tcp.go
+5
-5
tcp_test.go
tcp_test.go
+7
-6
No files found.
.gitlab-ci.yml
0 → 100644
View file @
87e91f69
stages
:
-
build
-
test
variables
:
BUILD_DIR
:
"
/tmp/$CI_CONCURRENT_PROJECT_ID"
before_script
:
-
mkdir -p $BUILD_DIR/src
-
cd $BUILD_DIR/src
-
if [ -d $CI_PROJECT_DIR ]
-
then
-
echo "soft link $CI_PROJECT_DIR exists"
-
else
-
echo "creating soft link $CI_PROJECT_DIR"
-
ln -s $CI_PROJECT_DIR
-
fi
-
cd $CI_PROJECT_DIR
build
:
stage
:
build
tags
:
-
testing
script
:
-
echo $CI_JOB_STAGE
-
go build
test
:
stage
:
test
tags
:
-
testing
script
:
-
echo $CI_JOB_STAGE
-
go test -cover
coverage
:
'
/coverage:
\d+.\d+%
of
statements/'
go.mod
View file @
87e91f69
module
git
hub.com/lib
p2p/go-tcp-transport
module
git
lab.dms3.io/
p2p/go-tcp-transport
require (
github.com/ipfs/go-log
v1.0.3
github.com/libp2p/go-libp2p-core
v0.5.1
github.com/libp2p/go-libp2p-mplex
v0.2.3
github.com/libp2p/go-libp2p-testing
v0.1.1
github.com/libp2p/go-libp2p-transport-upgrader
v0.2.0
github.com/libp2p/go-netroute
v0.1.5 // indirect
github.com/libp2p/go-reuseport
v0.0.2
github.com/libp2p/go-reuseport-transport
v0.0.4
github.com/marten-seemann/tcp
v0.0.0-20210406111302-dfbc87cc63fd
github.com/mikioh/tcpinfo
v0.0.0-20190314235526-30a79bb1804b
github.com/multiformats/go-multiaddr
v0.3.
1
github.com/multiformats/go-multiaddr
v0.3.
3
github.com/multiformats/go-multiaddr-fmt
v0.1.0
github.com/multiformats/go-multihash
v0.0.15 // indirect
github.com/prometheus/client_golang
v1.10.0
gitlab.dms3.io/dms3/public/go-log
v0.0.1
gitlab.dms3.io/p2p/go-p2p-core
v0.0.1
gitlab.dms3.io/p2p/go-p2p-mplex
v0.0.1
gitlab.dms3.io/p2p/go-p2p-testing
v0.0.1
gitlab.dms3.io/p2p/go-p2p-transport-upgrader
v0.0.1
gitlab.dms3.io/p2p/go-reuseport
v0.0.1
gitlab.dms3.io/p2p/go-reuseport-transport
v0.0.1
)
go 1.15
go.sum
View file @
87e91f69
This diff is collapsed.
Click to expand it.
reuseport.go
View file @
87e91f69
...
...
@@ -4,7 +4,7 @@ import (
"os"
"strings"
"git
hub.com/lib
p2p/go-reuseport"
"git
lab.dms3.io/
p2p/go-reuseport"
)
// envReuseport is the env variable name used to turn off reuse port.
...
...
tcp.go
View file @
87e91f69
...
...
@@ -6,11 +6,11 @@ import (
"runtime"
"time"
logging
"git
hub.com/ipfs
/go-log"
"git
hub.com/lib
p2p/go-
lib
p2p-core/peer"
"git
hub.com/lib
p2p/go-
lib
p2p-core/transport"
tptu
"git
hub.com/lib
p2p/go-
lib
p2p-transport-upgrader"
rtpt
"git
hub.com/lib
p2p/go-reuseport-transport"
logging
"git
lab.dms3.io/dms3/public
/go-log"
"git
lab.dms3.io/
p2p/go-p2p-core/peer"
"git
lab.dms3.io/
p2p/go-p2p-core/transport"
tptu
"git
lab.dms3.io/
p2p/go-p2p-transport-upgrader"
rtpt
"git
lab.dms3.io/
p2p/go-reuseport-transport"
ma
"github.com/multiformats/go-multiaddr"
mafmt
"github.com/multiformats/go-multiaddr-fmt"
...
...
tcp_test.go
View file @
87e91f69
package
tcp
import
(
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer"
"testing"
"github.com/libp2p/go-libp2p-core/sec/insecure"
mplex
"github.com/libp2p/go-libp2p-mplex"
tptu
"github.com/libp2p/go-libp2p-transport-upgrader"
"gitlab.dms3.io/p2p/go-p2p-core/crypto"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
ttransport
"github.com/libp2p/go-libp2p-testing/suites/transport"
"gitlab.dms3.io/p2p/go-p2p-core/sec/insecure"
mplex
"gitlab.dms3.io/p2p/go-p2p-mplex"
tptu
"gitlab.dms3.io/p2p/go-p2p-transport-upgrader"
ttransport
"gitlab.dms3.io/p2p/go-p2p-testing/suites/transport"
ma
"github.com/multiformats/go-multiaddr"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment