From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1754483493; bh=S+Gtt2QwDEW6PlOqWYR0syg/SRxh4evgtDffu2DPzlg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=cdYpEV2+x6RDyQXjoFxIk8iEsUKPQ43UxAKF1KGNL1vXjtSu92dZfn1yZmle/DJ/J 9zSs+9X5mlNMrMJMCgsHOPdlqJiP5cRalLVgyZ4gqZ7L6aLsn1yTt7GlVJHBev5LkC +EvRnaQtUTVXRB81OvjELw2fpoE43t5Ai0150qCEZ/+7HKaWTW/XnQc6GoF9+G8FtU S4uoE1EbSvL6j0gajrzE1GwdnlDTgSnkDubP5Ui6D6bYDGZL28d3CQWfcv47NDp0RT eJ24fck5A7ipWngYzKKnezCcA0sRgrnrXh+1H7R1mSS/SOV1a1L7UAr1cpUwQBjx3y NNTWlBy8on+XQ== Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 6E8113127B8D for ; Wed, 6 Aug 2025 12:31:33 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-55b81b58eb7so6615554e87.2 for ; Wed, 06 Aug 2025 05:31:33 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUj/y0JtQHCBwmPGf+gN/VkChii/MylcVuDfl3FZH3dvlgZiwFymyMxqWoKfwqJjsVObDOR@vger.gnuweeb.org X-Gm-Message-State: AOJu0Yx0gBr2J59Qe8olOZ1d9X82F6h3HZH15cq7UVB0/Nxu4aSfDGdU 6ZFeZovrMC2jd+sqIjsGpPC0GwEGxOrI+i805EZWMLY14iID/Kj2Da1uVUUi5JP2htU3mKaqlSG UJmkz5JDhSTdW9ZmeXz/tgupONHCwdZw= X-Google-Smtp-Source: AGHT+IEilQ6SzE1NCG2MT73FH6goAsGKJzkPjXd7eDzzegHRqb8sDq4yBdcYyV5LLSnBb1ug2DhlOZ+TghPHq1R7IdU= X-Received: by 2002:a05:6512:3a95:b0:55a:e1f6:bd9d with SMTP id 2adb3069b0e04-55caf57ba6bmr824942e87.16.1754483492817; Wed, 06 Aug 2025 05:31:32 -0700 (PDT) MIME-Version: 1.0 References: <20250806035727.216702-1-reyuki@gnuweeb.org> <20250806035727.216702-5-reyuki@gnuweeb.org> In-Reply-To: From: Ahmad Gani Date: Wed, 6 Aug 2025 19:30:55 +0700 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXyWn-8Ludg0WX7zHvOo-tE_RKD5Wdw72GACFp21ZOPkdB51kz8JQ39ZjYg Message-ID: Subject: Re: [PATCH gwproxy v4 4/6] dnslookup: Initial work for implementation of C-ares-like getaddrinfo function To: Ammar Faizi Cc: Alviro Iskandar Setiawan , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: On Wed, Aug 6, 2025 at 6:39=E2=80=AFPM Ammar Faizi wrote: > On Wed, Aug 06, 2025 at 06:20:10PM +0700, Alviro Iskandar Setiawan wrote: > > On Wed, Aug 6, 2025 at 6:09=E2=80=AFPM Alviro Iskandar Setiawan wrote: > > > On Wed, Aug 6, 2025 at 10:57=E2=80=AFAM Ahmad Gani wrote: > > > > Introducing glibc's getaddrinfo replacement, the DNS protocol > > > > implementation is limited to standard query (OPCODE_QUERY) as for n= ow, > > > > but may extended later as necessary. > > > > > > Thinking about this further, I think this design is wrong. The DNS > > > library is expected to only handle bytes processing, leaving the > > > networking stack to the caller. > > > > > > Think, how is it going to be integrated with io_uring? > > > > > > We should let the caller perform the recv and send. This library > > > doesn't need to care about the networking stack at all. Make it the > > > caller's responsibility to feed the library with bytes from the > > > network. > > > > Please take a look at src/gwproxy/socks5.c > > > > That's a perfect example of socks5 bytes processing without > > networking. Purely bytes parsing. > > > > That way you can use io_uring, epoll, or whatever shiny features, even > > statically allocated fake bytes work. > > That's right, it was the last unfinished discussion. Nice that you > bring that point again. > > I think we should not be following c-ares. The io_uring design simply > can't work with c-ares' style abstraction. gwproxy DNS library does not > need to have the same interface as c-ares. Alright, let's start over again. Should I send the unfinished v5 patch seri= es for archival purposes? It will be a good artefak in the GNU/Weeb mailing li= st. -- Ahmad Gani