Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP Connection returns EOF for queries after ping #26

Open
Ekliptor opened this issue Jan 4, 2024 · 2 comments
Open

TCP Connection returns EOF for queries after ping #26

Ekliptor opened this issue Jan 4, 2024 · 2 comments

Comments

@Ekliptor
Copy link

Ekliptor commented Jan 4, 2024

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
	}
@sanikolaev
Copy link
Contributor

Thanks for your comment @Ekliptor

FYI we recommend using this Go client https://github.com/manticoresoftware/manticoresearch-go instead. The twitter thread about it - https://twitter.com/manticoresearch/status/1755895536710807761

@Ekliptor
Copy link
Author

Ekliptor commented Feb 11, 2024

thanks. I hadn't noticed that yet, will switch

EDIT: are there plans to add the binary protocol later?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants