Comments (2)
@sknat As discussed last week at Calicocon, I tried with 24.02 VPP release without more luck. Same behaviour.
from govpp.
Hi @surfmax
This is probably due to the way the ping operates in VPP,
It was worth trying over the binary API as well (snippet below), but the problem seems to persist.
As this is most probably a VPP issue, can you try reporting it to [email protected] ?
func doPing(conn api.Connection) {
sub, err := conn.WatchEvent(context.Background(), (*ping.PingFinishedEvent)(nil))
if err != nil {
log.Fatalln("ERROR:", err)
}
var wg sync.WaitGroup
wg.Add(1)
go func() {
fmt.Println("waiting for events")
defer fmt.Println("done waiting for events")
for notif := range sub.Events() {
e, ok := notif.(*ping.PingFinishedEvent)
if !ok {
fmt.Printf("invalid notification type: %#v\n", e)
continue
}
fmt.Printf("Ping %+v\n", e)
wg.Done()
}
}()
c := ping.NewServiceClient(conn)
reply, err := c.WantPingFinishedEvents(context.Background(), &ping.WantPingFinishedEvents{
Address: ip_types.NewAddress(net.ParseIP("20.0.0.2")),
Repeat: 10,
Interval: 1.0,
})
if err != nil {
log.Fatalln("ERROR:", err)
}
fmt.Printf("ping ok: %+v\n", reply)
wg.Wait()
}
from govpp.
Related Issues (20)
- cannot parse high u64 default values in the API files HOT 3
- Fix: memory leak in receiveReplyInternal function
- [extras] Add documentation for govpp/extras and govpp/extras/gomemif HOT 3
- support for .tar.gz archives as input of govpp apigen
- Fix failing build for integration tests due removed version of package HOT 1
- Improve compatibility checking
- panic in the stats element HOT 5
- gomemif: Packet sent on Tx queue is received back on Rx queue of sender HOT 2
- Request for a tag HOT 1
- Using Log2RingSize custom set to more than 10 causes crash in packet writer for gomemif HOT 1
- Close connection event channel on disconnect
- Memory leak prevention proposal
- GoVPP Software Bill of Materials Generation HOT 3
- Would you please add an example using mulit rx and tx queue to extras/gomemif/examples HOT 1
- Add a dev and release VPP container HOT 3
- Fix import for extras in go.mod file HOT 3
- Possible memory leak in govpp from using time.NewTimer HOT 1
- Verify auto release process works HOT 2
- Disconnect Stats panic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from govpp.