diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index dcf1d324..1396cd18 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -21,6 +21,8 @@ # import atexit +import ctypes +import ctypes.util import errno import os import pwd @@ -75,6 +77,8 @@ except ImportError: plainsocket = None +libc = ctypes.CDLL(ctypes.util.find_library('c')) + def _should_authlog(path, operation): if (operation == 'retrieve' and ('/sensors/' in path or '/health/' in path or