-
Notifications
You must be signed in to change notification settings - Fork 63
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
[WIP] Feature: TCPFactory/TCPTransport instead of dmsg #503
[WIP] Feature: TCPFactory/TCPTransport instead of dmsg #503
Conversation
pkg/setup/node.go
Outdated
@@ -30,7 +30,7 @@ type Node struct { | |||
Logger *logging.Logger | |||
|
|||
tm *transport.Manager | |||
messenger *dmsg.Client | |||
messenger transport.Factory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setup node is supposed to use dmsg exclusively and directly. The communication between the visor and the setup node should not use TCP transport.
1. Rewritten with reverse index InMemoryTable 2. Fixed tests 3. Started integration environment for tcp-transport
Use ``` $ source ./integration/tcp-tr/env-vars.sh ``` to init and everything as usual
pkg/router/router.go
Outdated
} | ||
case "tcp-transport": | ||
r.Logger.Info("Skipping setup for tcp-transport") | ||
_, err := r.tm.CreateSetupTransport(context.Background(), raddr.PubKey, "tcp-transport") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dmsg
is to be used with SetupNode
always.
Just a thought, let's split this PR into two.
Let's make this PR be |
```zsh $ for ((i=1; i<=128; i++)){_ ip addr add 12.12.12.$i/32 dev lo} ``` then run Example_runMultihead ```zsh $ tree /tmp/multihead $ cat /tmp/multihead/multihead.log |sort $ ps aux |grep skychat |wc - l ``` You must see 128 instances of skywire-node with 128 skychats each on different IP
…ltiHead.sendMessage
…egular calls. Debugging improvements
It's WIP.
Just compiled and passes regular tests.
Closes: #501