digitalocean / go-openvswitch

Go packages which enable interacting with Open vSwitch and related tools. Apache 2.0 Licensed.
Other
295 stars 95 forks source link

ovsdb: handle echo RPCs from server #22

Closed mdlayher closed 6 years ago

mdlayher commented 6 years ago

Okay, so the idea here is that the receive loop is busy receiving messages and doesn't want to deal with its own goroutines and such, so it sends a message on a channel to another goroutine that is sending out echo RPCs.

The echo loop previously added, when running, also creates messages using the same mechanism now, so we have only one goroutine responsible for doing echo and incrementing counters.