MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / get_timeout_error

Function get_timeout_error

core/compatible.py:51–61  ·  view source on GitHub ↗

Get the timeout error thrown by pyshark apply_on_packets function

()

Source from the content-addressed store, hash-verified

49
50
51def get_timeout_error():
52 """
53 Get the timeout error thrown by pyshark apply_on_packets function
54 """
55 try:
56 # If asyncio timeout error exists, this will be returned
57 return asyncio.exceptions.TimeoutError
58 except Exception:
59 # For older python versions, where asyncio timeout error
60 # doesn't exist, this one will be returned.
61 return concurrent.futures._base.TimeoutError
62
63
64def check_for_requirements(start_api_server):

Callers 1

network_traffic_captureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected