def create_true_listen_socket(server_info, protocol, sock_type, blocking=0):
  if hasattr(socket, "_old_socket"):
    true_socket = socket._old_socket(protocol, sock_type)
  else:
    true_socket = socket.socket(protocol, sock_type)
  true_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
  true_socket.bind(server_info)
  true_socket.setblocking(blocking)
  true_socket.listen(1)
  return true_socket
Return a socket bound to server_info and set to listen
dataset/ETHPy150Open ucb-sts/sts/sts/util/socket_mux/server_socket_multiplexer.py/create_true_listen_socket