Skip to content

Support Timeout on requests to solr #84

@alejandrohdo

Description

@alejandrohdo

image

Hello community, first thank you for creating this wonderful SolrClient application, lately I am experiencing that sometimes when I perform querys or high volume commits it stays in indeterminate standby mode, in which I think at least from the client I should be able to handle this problem. wait time. I see at the level of connection to solr it does it with requests and I think that right there you can add the timeout parameter. That is, you could send something like: data_solr = conectionSolr.query (collection, query, timeout = 80) and inside the _send function it would be something like: res = self.session.request (method, url, params = params, data = data , headers = headers, verify = False, timeout = param_timeOut). How feasible would it be to integrate this function? For my part, I still feel like a novice to make a change like this ..., thank you very much for everything, I will be waiting for your contributions

PD: In the screenshot I send the line where I think you can add the timeOut option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions