refactor: use sockpair instated of unixdomain server