From nobody Wed Dec 15 06:52:27 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8367018D4A1B for ; Wed, 15 Dec 2021 06:52:46 +0000 (UTC) (envelope-from potthua@gmail.com) Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDQt53dWlz3n3M for ; Wed, 15 Dec 2021 06:52:45 +0000 (UTC) (envelope-from potthua@gmail.com) Received: by mail-ua1-x92e.google.com with SMTP id 30so39182449uag.13 for ; Tue, 14 Dec 2021 22:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=nsPTYfer/tz7KCzDyvGrwf1s5lWTHS3lS5v+4OPIr+k=; b=AmwudCkWZMjsWS0I5Algb4SrViDmj7dG6dRlPZyY8W3iVabIkTJnFhhkbLyOKhoBkf lOgn8Tegyfxgr2yCHF/2F/vxHP6zDkzhDGxu0QeFU8Fzw3gF4W3CeqVzyG43qQh3xzk+ IVZZogeiKhMBp4XekTw4lhFE7fZkX1rSbphMPJR6bStoSnV3oEvHEQrhbA98cTbO72VF k3mifY/LZxxsGZeUp+TtrOYTUBo5zVQP7OPVfm1bdWpvjDEMsUkYZHhtrdjDMjitrW8F VsqEk0MQcdLk8hDWS6AyhxAjzWS6APmhR+H1JnPqT140bZ1zF7K+uDnMDyZOMXz5ixzg 26Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nsPTYfer/tz7KCzDyvGrwf1s5lWTHS3lS5v+4OPIr+k=; b=L9m1U2W4IM7I4Y5Wv5fE3sFdWNeBqQgg8N/pRgqM3Q7PFWfCj2Qfh55X76pjdASCYk 8Xgek5JscZYANtXmyoDepnPWEf68PS9lU8XtKb7NkiR4/B2jh8eGcGUWcTezElksYXb/ lzM2go7ZFxeagMhMmhd2y5ZJgp0IGfSrwdF6WY6rkvN1O/ysXgubM7qbIhhYnWt4eI4v VTScov6pOhBPj1IhN95W0UPneuKj3hY1WeeNbFrgSCIy+ts4KqV9z5iWXm8dhajBlaed QbAvc6XB9f6vcCvW/0GM1RbZsmxXJiH4+srPHPJx8e/0z/rVCXTUzTgvU44BOT73Mq0J jT6A== X-Gm-Message-State: AOAM5314u3MFurcq2ikp8yL8vrKASiGEWJD8WDEjLViKrBB/4briO1lZ c9RChIT5ySNf0DjRPjrWFnhAXKG/Ye8ezZJ6HUm14aIHzXE= X-Google-Smtp-Source: ABdhPJxa/AeKiKYo3wqttk9dfZCCpfOMpEl3X4kyWw5WmoEl9bioofVtITbNMWZlkyf8EifKDg4qf54Hd2DwZG4MsAM= X-Received: by 2002:a67:e90d:: with SMTP id c13mr2404740vso.12.1639551158630; Tue, 14 Dec 2021 22:52:38 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 From: Piper H Date: Wed, 15 Dec 2021 14:52:27 +0800 Message-ID: Subject: question on socket server To: freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="00000000000066bd2205d329c031" X-Rspamd-Queue-Id: 4JDQt53dWlz3n3M X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=AmwudCkW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of potthua@gmail.com designates 2607:f8b0:4864:20::92e as permitted sender) smtp.mailfrom=potthua@gmail.com X-Spamd-Result: default: False [-0.00 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::92e:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(1.00)[1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: Y --00000000000066bd2205d329c031 Content-Type: text/plain; charset="UTF-8" Hello I have little knowledge about socket programming. I have a question that, if I have made a socket server, listening on a port. The server prints data to the socket, but there is never a client connection to the port, and the data is never consumed. What will happen to the server then? will the OS kernel be flushed by junk bytes? Thanks for your help. Piper --00000000000066bd2205d329c031--