mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-03-09 15:40:15 +00:00
Merge branch 'develop' into switch
This commit is contained in:
commit
e31962de0f
3 changed files with 52 additions and 8 deletions
|
@ -800,6 +800,7 @@ func (t *switchTable) doWorker() {
|
|||
t.queues.bufs = make(map[string]switch_buffer) // Packets per PacketStreamID (string)
|
||||
idle := make(map[switchPort]struct{}) // this is to deduplicate things
|
||||
for {
|
||||
t.core.log.Debugf("Switch state: idle = %d, buffers = %d", len(idle), len(t.queues.bufs))
|
||||
select {
|
||||
case bytes := <-t.packetIn:
|
||||
// Try to send it somewhere (or drop it if it's corrupt or at a dead end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue