When using the Ping()queries don't work anymore and return EOF from the TCP stream. The obvious workaround is to reconnect after ping (or don't ping). But this should be fixed.
Minimal example to reproduce:
clTemp := manticore.NewClient()
clTemp.SetServer("localhost", 9312)
clTemp.Open()
clTemp.Ping(123) // if I remove this line the query returns results
res, err := clTemp.Query("foo", "temprt")
if err != nil {
fmt.Printf("Error test querying Manticore %+v", err) // EOF
}
When using the
Ping()queries don't work anymore and returnEOFfrom the TCP stream. The obvious workaround is to reconnect after ping (or don't ping). But this should be fixed.Minimal example to reproduce: