MCPcopy Index your code
hub / github.com/python/cpython / tcp_blackhole

Function tcp_blackhole

Lib/test/support/socket_helper.py:325–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323
324
325def tcp_blackhole():
326 if not sys.platform.startswith('freebsd'):
327 return False
328
329 # gh-109015: test if FreeBSD TCP blackhole is enabled
330 value = _get_sysctl('net.inet.tcp.blackhole')
331 if value is None:
332 # don't skip if we fail to get the sysctl value
333 return False
334 return (value != 0)
335
336
337def skip_if_tcp_blackhole(test):

Callers 1

skip_if_tcp_blackholeFunction · 0.85

Calls 2

_get_sysctlFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…