DMTF / libredfish

libRedfish is a C client library that allows for Creation of Entities (POST), Read of Entities (GET), Update of Entities (PATCH), Deletion of Entities (DELETE), running Actions (POST), receiving events, and providing some basic query abilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement timeout for each redfishService

martinkennelly opened this issue · comments

Hey,
I am currently using your fine piece of software for a collectd read plugin and I want to configure timeout for requests. It is currently set to 20 seconds for curl.
I would like to attach the timeout to a redfishService.
I think you would just have to pass the redfishService struct to rawAsyncWorkThread, and assign the curl timeout.

Any plans to introduce this?
Thank you for your time.

Pull #58 will add a timeout per request. I went with this approach instead of per service as you might need some operations on the same service to take longer than others. If you want to implement it on a per service basis it shouldn't be that hard to do with this in the calling code.

Thank you for your reply. Very happy to hear.