mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
simplify how blocking is detected and packets are dequeued
This commit is contained in:
parent
38dcbb1e2f
commit
1df305d31c
3 changed files with 11 additions and 22 deletions
|
@ -270,14 +270,14 @@ func (intf *routerInterface) out(bss [][]byte) {
|
|||
intf.router._handlePacket(bs)
|
||||
}
|
||||
})
|
||||
//intf.router.peer.Act(nil, intf.router.peer._handleIdle)
|
||||
// This should now immediately make the peer idle again
|
||||
// So the self-peer shouldn't end up buffering anything
|
||||
// We let backpressure act as a throttle instead
|
||||
intf.router.peer._handleIdle()
|
||||
}
|
||||
|
||||
func (intf *routerInterface) linkOut(_ []byte) {}
|
||||
|
||||
func (intf *routerInterface) notifyQueued(seq uint64) {}
|
||||
|
||||
func (intf *routerInterface) close() {}
|
||||
|
||||
func (intf *routerInterface) name() string { return "(self)" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue