-
Notifications
You must be signed in to change notification settings - Fork 862
tcp multiplexer for sei giga #2679
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
base: main
Are you sure you want to change the base?
Conversation
| } | ||
| } | ||
| return n, err | ||
| panic("unreachable") |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
| for kind, c := range cfg.Kinds { | ||
| kinds[kind] = &kindState{ | ||
| acceptsQueue: make(chan *streamState, c.MaxAccepts), | ||
| connectsQueue: make(chan *streamState, c.MaxConnects), | ||
| } | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning
| for kind, c := range h.Kinds { | ||
| kinds = append(kinds, &pb.StreamKindConfig{ | ||
| Kind: uint64(kind), | ||
| MaxConnects: c.MaxConnects, | ||
| MaxAccepts: c.MaxAccepts, | ||
| }) | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning
| import ( | ||
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" | ||
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
| reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
| reflect "reflect" | ||
| sync "sync" | ||
| unsafe "unsafe" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
| for kind, cfg := range m.cfg.Kinds { | ||
| remCfg, ok := handshake.Kinds[kind] | ||
| if !ok { | ||
| remCfg = &StreamKindConfig{} | ||
| } | ||
| inner.acceptsSem[kind] = min(cfg.MaxAccepts, remCfg.MaxConnects) | ||
| for range min(cfg.MaxConnects, remCfg.MaxAccepts) { | ||
| m.kinds[kind].connectsQueue <- inner.newConnectStream(kind) | ||
| } | ||
| } |
Check warning
Code scanning / CodeQL
Iteration over map Warning
TCP Multiplexer for sei giga. It is a replacement for sei-tendermint/internal/p2p/conn.MConnection. It will be used with autobahn only (currently unused). The high level overview of the protocol is described in package comment in mux/mux.go