Elasticsearch-Inside
Elasticsearch-Inside copied to clipboard
timeout exception
Hi,
Every time I'm trying to do this:
Elasticsearch = new ElasticsearchInside.Elasticsearch();
await Elasticsearch.Ready();
The Ready() function throw an exception of task cancell timeout exception.
Why is that happening? any help?
I think there is a hardcoded timeout and if ES does not return response 200 OK within 30s, task gets cancelled. https://github.com/poulfoged/Elasticsearch-Inside/blob/db5bc02fecb6e27b2690bb73472806e02d9fc4ef/source/ElasticsearchInside/Elasticsearch.cs#L136
@poulfoged Is there a chance to make the timeout configurable? I'm happy to come up with MR if it works for you.
Sure, I'd be happy to get a MR :)
#21 solved my timeout issue