All Apps and Add-ons

Default Time-Out

rpattison
Explorer

From time to time we get a timed out status with no response time. How long does the script wait for the site to respond before it times out and is that threshold configurable?

Tags (1)

bandit
Motivator

Looks like it may be 30 seconds.

bin]$ grep -i timeout *.py
modular_input.py:        def __init__(self, timeout=30):
web_ping.py:    def __init__(self, timeout=30, thread_limit=None):
web_ping.py:        if timeout > 0:
web_ping.py:            self.timeout = timeout
web_ping.py:            self.timeout = 30
web_ping.py:    def determine_auth_type(cls, url, proxies=None, timeout=None, cert=None, logger=None):
web_ping.py:        timeout -- The amount of time to quit waiting on a connection
web_ping.py:            http = requests.get(url.geturl(), proxies=proxies, timeout=timeout, cert=cert,
web_ping.py:    def ping(cls, url, username=None, password=None, timeout=30, proxy_type=None,
web_ping.py:        timeout -- The amount of time to quit waiting on a connection.
web_ping.py:        # Make sure that a timeout is not None since that is infinite
web_ping.py:        if timeout is None:
web_ping.py:            timeout = 30
web_ping.py:            auth_type = cls.determine_auth_type(url, proxies=proxies, timeout=timeout, cert=cert,
web_ping.py:                http = requests.get(url.geturl(), proxies=proxies, timeout=timeout, cert=cert, verify=False, auth=auth, headers=headers)
web_ping.py:        except requests.exceptions.Timeout:
web_ping.py:        timeout = self.timeout
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...