Rewrote example peering2 using polling. The previous version with goroutines crashed.