"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[5740],{1857:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>a,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"XXTLanControl.lua/core/set_retry_count","title":"Configure Request Retries (LCC.set_retry_count)","description":"Signature","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/XXTLanControl.lua/core/set_retry_count.md","sourceDirName":"XXTLanControl.lua/core","slug":"/XXTLanControl.lua/core/set_retry_count","permalink":"/docs/en/XXTLanControl.lua/core/set_retry_count","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":20,"frontMatter":{"sidebar_position":20},"sidebar":"tutorialSidebar","previous":{"title":"Set Controller Endpoint (LCC.set_api_url)","permalink":"/docs/en/XXTLanControl.lua/core/set_api_url"},"next":{"title":"Set Log Column Aliases (LCC.set_log_aliases)","permalink":"/docs/en/XXTLanControl.lua/core/set_log_aliases"}}');var s=r(4848),o=r(8453);const i={sidebar_position:20},l="Configure Request Retries (LCC.set_retry_count)",a={},c=[{value:"Signature",id:"signature",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Notes",id:"notes",level:2},{value:"Example",id:"example",level:2}];function u(e){const t={blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"configure-request-retries-lccset_retry_count",children:"Configure Request Retries (LCC.set_retry_count)"})}),"\n",(0,s.jsx)(t.h2,{id:"signature",children:"Signature"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-lua",children:"LCC.set_retry_count(retry_count)\n"})}),"\n",(0,s.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["retry_count",(0,s.jsx)(t.br,{}),"\n","Integer. When ",(0,s.jsx)(t.code,{children:"> 0"})," it limits the number of extra retries; ",(0,s.jsx)(t.code,{children:"<= 0"})," means retry indefinitely until a definitive result is returned."]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"none"}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"notes",children:"Notes"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsxs)(t.p,{children:["Controls the timeout/retry behaviour for every controller-side API that the module calls.",(0,s.jsx)(t.br,{}),"\n","For network failures or ",(0,s.jsx)(t.code,{children:"5xx"})," responses the module waits 1 second and retries until the limit is reached or the call succeeds.",(0,s.jsx)(t.br,{}),"\n","The default is ",(0,s.jsx)(t.code,{children:"0"})," (retry forever). Leave it as-is in automated scenarios, or cap it in ad-hoc scripts to avoid blocking."]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"example",children:"Example"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-lua",children:"LCC.set_retry_count(5)  -- retry at most 5 additional times\n"})})]})}function d(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8453:(e,t,r)=>{r.d(t,{R:()=>i,x:()=>l});var n=r(6540);const s={},o=n.createContext(s);function i(e){const t=n.useContext(o);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(o.Provider,{value:t},e.children)}}}]);