diff options
author | Ayushi Smriti <smriti.ayushi@linux.intel.com> | 2020-05-15 12:54:45 +0300 |
---|---|---|
committer | smriti.ayushi <smriti.ayushi@linux.intel.com> | 2020-07-02 04:14:02 +0300 |
commit | fe44eb0b4b46fa3a96f445df05e962e15e5d337d (patch) | |
tree | 7d968bbec8adb9916e8f73eb5ae4a04324626ace /redfish-core/lib/event_service.hpp | |
parent | c0557e1acd060cbc7d68befd5659d081c1a7fdb0 (diff) | |
download | bmcweb-fe44eb0b4b46fa3a96f445df05e962e15e5d337d.tar.xz |
EventService: Add retry configuration support
This commit is to pass configuration parameters: retry attempts,
retry interval secs and retry policy to http client and take
required delivery retry policy action.
Also, perform async wait for retryTimeoutInterval before each
retry attempts.
Tested:
- Set and verified config properties by sending PATCH req on
EventService and EventDestination uri.
- Verified the appropriate delivery retry policy action block reached.
- Verified the async_wait logic by triggering retry case depending
failed state of connection.
- could see a wait for timeout interval before next retry.
Signed-off-by: Ayushi Smriti <smriti.ayushi@linux.intel.com>
Change-Id: Id1366fca59dc9e6543c553bfe5df95a59f468bc7
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/event_service.hpp')
-rw-r--r-- | redfish-core/lib/event_service.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp index b88cb43a19..ba1ea19053 100644 --- a/redfish-core/lib/event_service.hpp +++ b/redfish-core/lib/event_service.hpp @@ -507,6 +507,7 @@ class EventDestination : public Node return; } subValue->retryPolicy = *retryPolicy; + subValue->updateRetryPolicy(); } EventServiceManager::getInstance().updateSubscriptionData(); |