Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 1 | #include "sol_context.hpp" |
| 2 | |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 3 | #include "main.hpp" |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 4 | #include "message_handler.hpp" |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 5 | #include "sd_event_loop.hpp" |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 6 | #include "sessions_manager.hpp" |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 7 | #include "sol_manager.hpp" |
| 8 | |
George Liu | 7b7f25f | 2022-07-04 17:07:32 +0800 | [diff] [blame] | 9 | #include <errno.h> |
| 10 | |
| 11 | #include <phosphor-logging/lg2.hpp> |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 12 | |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 13 | namespace sol |
| 14 | { |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 15 | using namespace phosphor::logging; |
| 16 | |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 17 | Context::Context(std::shared_ptr<boost::asio::io_context> io, |
| 18 | uint8_t maxRetryCount, uint8_t sendThreshold, uint8_t instance, |
| 19 | session::SessionID sessionID) : |
Patrick Williams | 8425624 | 2024-08-16 15:20:21 -0400 | [diff] [blame^] | 20 | accumulateTimer(*io), retryTimer(*io), maxRetryCount(maxRetryCount), |
| 21 | retryCounter(maxRetryCount), sendThreshold(sendThreshold), |
| 22 | payloadInstance(instance), sessionID(sessionID) |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 23 | { |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 24 | session = session::Manager::get().getSession(sessionID); |
Vernon Mauery | a6ad5e1 | 2020-02-21 14:54:24 -0800 | [diff] [blame] | 25 | } |
| 26 | |
Patrick Williams | 8425624 | 2024-08-16 15:20:21 -0400 | [diff] [blame^] | 27 | std::shared_ptr<Context> Context::makeContext( |
| 28 | std::shared_ptr<boost::asio::io_context> io, uint8_t maxRetryCount, |
| 29 | uint8_t sendThreshold, uint8_t instance, session::SessionID sessionID) |
Vernon Mauery | a6ad5e1 | 2020-02-21 14:54:24 -0800 | [diff] [blame] | 30 | { |
| 31 | auto ctx = std::make_shared<Context>(io, maxRetryCount, sendThreshold, |
| 32 | instance, sessionID); |
| 33 | ctx->enableAccumulateTimer(true); |
| 34 | return ctx; |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | void Context::enableAccumulateTimer(bool enable) |
| 38 | { |
| 39 | // fetch the timeout from the SOL manager |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 40 | std::chrono::microseconds interval = sol::Manager::get().accumulateInterval; |
Tang Yiwei | 1553514 | 2022-09-21 17:28:15 +0800 | [diff] [blame] | 41 | |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 42 | if (enable) |
| 43 | { |
Tang Yiwei | 1553514 | 2022-09-21 17:28:15 +0800 | [diff] [blame] | 44 | auto bufferSize = sol::Manager::get().dataBuffer.size(); |
| 45 | if (bufferSize > sendThreshold) |
| 46 | { |
Konstantin Aladyshev | 426fcab | 2024-03-13 17:56:50 +0300 | [diff] [blame] | 47 | try |
| 48 | { |
| 49 | int rc = sendOutboundPayload(); |
| 50 | if (rc == 0) |
Jian Zhang | 5499bf8 | 2024-01-24 15:33:11 +0800 | [diff] [blame] | 51 | { |
Konstantin Aladyshev | 426fcab | 2024-03-13 17:56:50 +0300 | [diff] [blame] | 52 | return; |
Jian Zhang | 5499bf8 | 2024-01-24 15:33:11 +0800 | [diff] [blame] | 53 | } |
Konstantin Aladyshev | 426fcab | 2024-03-13 17:56:50 +0300 | [diff] [blame] | 54 | } |
| 55 | catch (const std::exception& e) |
| 56 | { |
| 57 | lg2::error( |
| 58 | "Failed to call the sendOutboundPayload method: {ERROR}", |
| 59 | "ERROR", e); |
| 60 | return; |
| 61 | } |
Tang Yiwei | 1553514 | 2022-09-21 17:28:15 +0800 | [diff] [blame] | 62 | } |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 63 | accumulateTimer.expires_after(interval); |
Konstantin Aladyshev | 426fcab | 2024-03-13 17:56:50 +0300 | [diff] [blame] | 64 | std::weak_ptr<Context> weakRef = weak_from_this(); |
Vernon Mauery | a6ad5e1 | 2020-02-21 14:54:24 -0800 | [diff] [blame] | 65 | accumulateTimer.async_wait( |
| 66 | [weakRef](const boost::system::error_code& ec) { |
Patrick Williams | 8425624 | 2024-08-16 15:20:21 -0400 | [diff] [blame^] | 67 | std::shared_ptr<Context> self = weakRef.lock(); |
| 68 | if (!ec && self) |
| 69 | { |
| 70 | self->charAccTimerHandler(); |
| 71 | } |
| 72 | }); |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 73 | } |
| 74 | else |
| 75 | { |
| 76 | accumulateTimer.cancel(); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void Context::enableRetryTimer(bool enable) |
| 81 | { |
| 82 | if (enable) |
| 83 | { |
| 84 | // fetch the timeout from the SOL manager |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 85 | std::chrono::microseconds interval = sol::Manager::get().retryInterval; |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 86 | retryTimer.expires_after(interval); |
Vernon Mauery | a6ad5e1 | 2020-02-21 14:54:24 -0800 | [diff] [blame] | 87 | std::weak_ptr<Context> weakRef = weak_from_this(); |
| 88 | retryTimer.async_wait([weakRef](const boost::system::error_code& ec) { |
| 89 | std::shared_ptr<Context> self = weakRef.lock(); |
| 90 | if (!ec && self) |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 91 | { |
Vernon Mauery | a6ad5e1 | 2020-02-21 14:54:24 -0800 | [diff] [blame] | 92 | self->retryTimerHandler(); |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 93 | } |
| 94 | }); |
| 95 | } |
| 96 | else |
| 97 | { |
| 98 | retryTimer.cancel(); |
| 99 | } |
| 100 | } |
| 101 | |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 102 | void Context::processInboundPayload(uint8_t seqNum, uint8_t ackSeqNum, |
Tingting Chen | ec43741 | 2022-09-27 18:35:22 +0800 | [diff] [blame] | 103 | uint8_t count, bool status, bool isBreak, |
Vernon Mauery | 70fd29c | 2017-11-30 13:11:43 -0800 | [diff] [blame] | 104 | const std::vector<uint8_t>& input) |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 105 | { |
| 106 | uint8_t respAckSeqNum = 0; |
| 107 | uint8_t acceptedCount = 0; |
| 108 | auto ack = false; |
| 109 | |
| 110 | /* |
| 111 | * Check if the Inbound sequence number is same as the expected one. |
| 112 | * If the Packet Sequence Number is 0, it is an ACK-Only packet. Multiple |
| 113 | * outstanding sequence numbers are not supported in this version of the SOL |
| 114 | * specification. Retried packets use the same sequence number as the first |
| 115 | * packet. |
| 116 | */ |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 117 | if (seqNum && (seqNum != seqNums.get(true))) |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 118 | { |
George Liu | 7b7f25f | 2022-07-04 17:07:32 +0800 | [diff] [blame] | 119 | lg2::info("Out of sequence SOL packet - packet is dropped"); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 120 | return; |
| 121 | } |
| 122 | |
| 123 | /* |
| 124 | * Check if the expected ACK/NACK sequence number is same as the |
| 125 | * ACK/NACK sequence number in the packet. If packet ACK/NACK sequence |
| 126 | * number is 0, then it is an informational packet. No request packet being |
| 127 | * ACK'd or NACK'd. |
| 128 | */ |
| 129 | if (ackSeqNum && (ackSeqNum != seqNums.get(false))) |
| 130 | { |
George Liu | 7b7f25f | 2022-07-04 17:07:32 +0800 | [diff] [blame] | 131 | lg2::info("Out of sequence ack number - SOL packet is dropped"); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 132 | return; |
| 133 | } |
| 134 | |
| 135 | /* |
| 136 | * Retry the SOL payload packet in the following conditions: |
| 137 | * |
| 138 | * a) NACK in Operation/Status |
| 139 | * b) Accepted Character Count does not match with the sent out SOL payload |
| 140 | * c) Non-zero Packet ACK/NACK Sequence Number |
| 141 | */ |
| 142 | if (status || ((count != expectedCharCount) && ackSeqNum)) |
| 143 | { |
| 144 | resendPayload(noClear); |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 145 | enableRetryTimer(false); |
| 146 | enableRetryTimer(true); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 147 | return; |
| 148 | } |
| 149 | /* |
| 150 | * Clear the sent data once the acknowledgment sequence number matches |
| 151 | * and the expected character count matches. |
| 152 | */ |
| 153 | else if ((count == expectedCharCount) && ackSeqNum) |
| 154 | { |
| 155 | // Clear the Host Console Buffer |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 156 | sol::Manager::get().dataBuffer.erase(count); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 157 | |
| 158 | // Once it is acknowledged stop the retry interval timer |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 159 | enableRetryTimer(false); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 160 | |
| 161 | retryCounter = maxRetryCount; |
| 162 | expectedCharCount = 0; |
| 163 | payloadCache.clear(); |
| 164 | } |
| 165 | |
Tingting Chen | ec43741 | 2022-09-27 18:35:22 +0800 | [diff] [blame] | 166 | if (isBreak && seqNum) |
| 167 | { |
| 168 | lg2::info("Writing break to console socket descriptor"); |
| 169 | constexpr uint8_t sysrqValue = 72; // use this to notify sol server |
| 170 | const std::vector<uint8_t> test{sysrqValue}; |
| 171 | auto ret = sol::Manager::get().writeConsoleSocket(test, isBreak); |
| 172 | if (ret) |
| 173 | { |
| 174 | lg2::error("Writing to console socket descriptor failed: {ERROR}", |
| 175 | "ERROR", strerror(errno)); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | isBreak = false; |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 180 | // Write character data to the Host Console |
| 181 | if (!input.empty() && seqNum) |
| 182 | { |
Tingting Chen | ec43741 | 2022-09-27 18:35:22 +0800 | [diff] [blame] | 183 | auto rc = sol::Manager::get().writeConsoleSocket(input, isBreak); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 184 | if (rc) |
| 185 | { |
George Liu | 7b7f25f | 2022-07-04 17:07:32 +0800 | [diff] [blame] | 186 | lg2::error("Writing to console socket descriptor failed: {ERROR}", |
| 187 | "ERROR", strerror(errno)); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 188 | ack = true; |
| 189 | } |
| 190 | else |
| 191 | { |
| 192 | respAckSeqNum = seqNum; |
| 193 | ack = false; |
| 194 | acceptedCount = input.size(); |
| 195 | } |
| 196 | } |
Tom Joseph | 694fc0c | 2017-08-21 11:47:25 +0530 | [diff] [blame] | 197 | /* |
| 198 | * SOL payload with no character data and valid sequence number can be used |
| 199 | * as method to keep the SOL session active. |
| 200 | */ |
| 201 | else if (input.empty() && seqNum) |
| 202 | { |
| 203 | respAckSeqNum = seqNum; |
| 204 | } |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 205 | |
| 206 | if (seqNum != 0) |
| 207 | { |
| 208 | seqNums.incInboundSeqNum(); |
| 209 | prepareResponse(respAckSeqNum, acceptedCount, ack); |
| 210 | } |
| 211 | else |
| 212 | { |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 213 | enableAccumulateTimer(true); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 214 | } |
| 215 | } |
| 216 | |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 217 | void Context::prepareResponse(uint8_t ackSeqNum, uint8_t count, bool ack) |
| 218 | { |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 219 | auto bufferSize = sol::Manager::get().dataBuffer.size(); |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 220 | |
| 221 | /* Sent a ACK only response */ |
| 222 | if (payloadCache.size() != 0 || (bufferSize < sendThreshold)) |
| 223 | { |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 224 | enableAccumulateTimer(true); |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 225 | |
Vernon Mauery | 70fd29c | 2017-11-30 13:11:43 -0800 | [diff] [blame] | 226 | std::vector<uint8_t> outPayload(sizeof(Payload)); |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 227 | auto response = reinterpret_cast<Payload*>(outPayload.data()); |
| 228 | response->packetSeqNum = 0; |
| 229 | response->packetAckSeqNum = ackSeqNum; |
| 230 | response->acceptedCharCount = count; |
| 231 | response->outOperation.ack = ack; |
| 232 | sendPayload(outPayload); |
| 233 | return; |
| 234 | } |
| 235 | |
| 236 | auto readSize = std::min(bufferSize, MAX_PAYLOAD_SIZE); |
| 237 | payloadCache.resize(sizeof(Payload) + readSize); |
| 238 | auto response = reinterpret_cast<Payload*>(payloadCache.data()); |
| 239 | response->packetAckSeqNum = ackSeqNum; |
| 240 | response->acceptedCharCount = count; |
| 241 | response->outOperation.ack = ack; |
| 242 | response->packetSeqNum = seqNums.incOutboundSeqNum(); |
| 243 | |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 244 | auto handle = sol::Manager::get().dataBuffer.read(); |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 245 | std::copy_n(handle, readSize, payloadCache.data() + sizeof(Payload)); |
| 246 | expectedCharCount = readSize; |
| 247 | |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 248 | enableRetryTimer(true); |
| 249 | enableAccumulateTimer(false); |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 250 | |
| 251 | sendPayload(payloadCache); |
| 252 | } |
| 253 | |
Tom Joseph | 7306314 | 2017-03-14 18:20:20 +0530 | [diff] [blame] | 254 | int Context::sendOutboundPayload() |
| 255 | { |
| 256 | if (payloadCache.size() != 0) |
| 257 | { |
Tom Joseph | 7306314 | 2017-03-14 18:20:20 +0530 | [diff] [blame] | 258 | return -1; |
| 259 | } |
| 260 | |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 261 | auto bufferSize = sol::Manager::get().dataBuffer.size(); |
Tom Joseph | 7306314 | 2017-03-14 18:20:20 +0530 | [diff] [blame] | 262 | auto readSize = std::min(bufferSize, MAX_PAYLOAD_SIZE); |
| 263 | |
| 264 | payloadCache.resize(sizeof(Payload) + readSize); |
| 265 | auto response = reinterpret_cast<Payload*>(payloadCache.data()); |
| 266 | response->packetAckSeqNum = 0; |
| 267 | response->acceptedCharCount = 0; |
| 268 | response->outOperation.ack = false; |
| 269 | response->packetSeqNum = seqNums.incOutboundSeqNum(); |
| 270 | |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 271 | auto handle = sol::Manager::get().dataBuffer.read(); |
Tom Joseph | 7306314 | 2017-03-14 18:20:20 +0530 | [diff] [blame] | 272 | std::copy_n(handle, readSize, payloadCache.data() + sizeof(Payload)); |
| 273 | expectedCharCount = readSize; |
| 274 | |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 275 | enableRetryTimer(true); |
| 276 | enableAccumulateTimer(false); |
Tom Joseph | 7306314 | 2017-03-14 18:20:20 +0530 | [diff] [blame] | 277 | |
| 278 | sendPayload(payloadCache); |
| 279 | |
| 280 | return 0; |
| 281 | } |
| 282 | |
Tom Joseph | 75e15db | 2017-03-14 18:16:22 +0530 | [diff] [blame] | 283 | void Context::resendPayload(bool clear) |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 284 | { |
Tom Joseph | 2fd466f | 2017-03-30 08:16:47 +0530 | [diff] [blame] | 285 | sendPayload(payloadCache); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 286 | |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 287 | if (clear) |
Tom Joseph | 2fd466f | 2017-03-30 08:16:47 +0530 | [diff] [blame] | 288 | { |
| 289 | payloadCache.clear(); |
| 290 | expectedCharCount = 0; |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 291 | sol::Manager::get().dataBuffer.erase(expectedCharCount); |
Tom Joseph | 2fd466f | 2017-03-30 08:16:47 +0530 | [diff] [blame] | 292 | } |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 293 | } |
| 294 | |
Vernon Mauery | 70fd29c | 2017-11-30 13:11:43 -0800 | [diff] [blame] | 295 | void Context::sendPayload(const std::vector<uint8_t>& out) const |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 296 | { |
Tom Joseph | 22596f2 | 2017-03-31 10:52:27 +0530 | [diff] [blame] | 297 | message::Handler msgHandler(session->channelPtr, sessionID); |
| 298 | |
| 299 | msgHandler.sendSOLPayload(out); |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 300 | } |
| 301 | |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 302 | void Context::charAccTimerHandler() |
| 303 | { |
Vernon Mauery | 2085ae0 | 2021-06-10 11:51:00 -0700 | [diff] [blame] | 304 | auto bufferSize = sol::Manager::get().dataBuffer.size(); |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 305 | |
| 306 | try |
| 307 | { |
| 308 | if (bufferSize > 0) |
| 309 | { |
| 310 | int rc = sendOutboundPayload(); |
| 311 | if (rc == 0) |
| 312 | { |
| 313 | return; |
| 314 | } |
| 315 | } |
| 316 | enableAccumulateTimer(true); |
| 317 | } |
Patrick Williams | 12d199b | 2021-10-06 12:36:48 -0500 | [diff] [blame] | 318 | catch (const std::exception& e) |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 319 | { |
George Liu | 7b7f25f | 2022-07-04 17:07:32 +0800 | [diff] [blame] | 320 | lg2::error("Failed to call the sendOutboundPayload method: {ERROR}", |
| 321 | "ERROR", e); |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 322 | } |
| 323 | } |
| 324 | |
| 325 | void Context::retryTimerHandler() |
| 326 | { |
| 327 | try |
| 328 | { |
| 329 | if (retryCounter) |
| 330 | { |
| 331 | --retryCounter; |
| 332 | enableRetryTimer(true); |
| 333 | resendPayload(sol::Context::noClear); |
| 334 | } |
| 335 | else |
| 336 | { |
| 337 | retryCounter = maxRetryCount; |
| 338 | resendPayload(sol::Context::clear); |
| 339 | enableRetryTimer(false); |
| 340 | enableAccumulateTimer(true); |
| 341 | } |
| 342 | } |
Patrick Williams | 12d199b | 2021-10-06 12:36:48 -0500 | [diff] [blame] | 343 | catch (const std::exception& e) |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 344 | { |
George Liu | 7b7f25f | 2022-07-04 17:07:32 +0800 | [diff] [blame] | 345 | lg2::error("Failed to retry timer: {ERROR}", "ERROR", e); |
Vernon Mauery | 6f353e8 | 2018-11-09 08:43:24 -0800 | [diff] [blame] | 346 | } |
| 347 | } |
Tom Joseph | fbcac2e | 2017-03-14 18:15:07 +0530 | [diff] [blame] | 348 | } // namespace sol |