if env.config["exec_mode"] == "slave":
env.tapping_logging_socket.LINGER = 0
env.tapping_logging_socket.close()
env.set_socket_logger(None)
if env.config["exec_mode"] in ("master", "slave"):
env.tapping_listener_socket.LINGER = 0
After Change
close_socket(env.master_request_socket)
if env.config["exec_mode"] == "slave":
close_socket(env.tapping_logging_socket)
env.set_socket_logger(None)
if env.config["exec_mode"] in ("master", "slave"):
close_socket(env.tapping_listener_socket)