From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.devel Subject: Re: Problems with running Network Socket Examples Date: Sun, 10 Dec 2023 13:44:33 +0100 Message-ID: References: <73b5a9c5-365a-429c-b7bd-649ee73982d7@mailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KClxGuEwMjf64Da7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel To: Erik Grun Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Dec 10 13:45:01 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rCJB7-0007uu-3q for guile-devel@m.gmane-mx.org; Sun, 10 Dec 2023 13:45:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCJAq-0006Gh-9r; Sun, 10 Dec 2023 07:44:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCJAk-0006GU-9a for guile-devel@gnu.org; Sun, 10 Dec 2023 07:44:38 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCJAi-0005z4-BM for guile-devel@gnu.org; Sun, 10 Dec 2023 07:44:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zKhUDEpk1x+yMWK3WoWE7KzKR9ZmRkThbYw6V+8T/og=; b=Ksh1AVt890vLTpGjMc1TQF72kx jfs9wRSHH/uLFvlwNk3yuQ/mqmahWVGycegaycI515omVpWtZkQdD//+9nZDeQ1ATRcs7pHyXwvG+ uUit6Dii9CxKQfvG12dKR7zSJM++85EepCPDxvy9qamqQd33h4nbo7eiXnn0F5S3f5f13DzBf2c44 UelQtRnPaN9nu6wDlD/+EnYL5oTRBmQpYDbdRNY4zEqFawKrV79/MK81uoj9/3Xbo/1Jt3CaOLe9V sbJfmhI9QXhGJYZziFgr+2Zlqk9dioKHpk/aeg45sTSaDkYbv+jFNJr0n/GfRvdiZPa8ySr/GFKAT CqAqVgcg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1rCJAf-0001k4-36; Sun, 10 Dec 2023 13:44:33 +0100 Content-Disposition: inline In-Reply-To: <73b5a9c5-365a-429c-b7bd-649ee73982d7@mailbox.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22225 Archived-At: --KClxGuEwMjf64Da7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 26, 2023 at 09:59:58PM +0100, Erik Grun wrote: > Hello, Guile-Devel, >=20 > I just can't get the Network Socket Examples[1] to work. I am using Guile > 3.0.7. >=20 > An obvious mistake seems to be, that the docs use different ports for cli= ent > (80) and server (2904), but even if I use the same port (2904), I only get > this error message: >=20 > Backtrace: > In ice-9/boot-9.scm: > 1752:10 6 (with-exception-handler _ _ #:unwind? _ # _) > In unknown file: > 5 (apply-smob/0 #) > In ice-9/boot-9.scm: > 724:2 4 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 3 (_ #(#(#))) > In ice-9/boot-9.scm: > 2835:4 2 (save-module-excursion _) > 4380:12 1 (_) > In /home/egnun/client.scm: > 7:14 0 (_) >=20 > /home/egnun/client.scm:7:14: Unbound variable: read-line >=20 > After some research I found out, that I need to include this line. > (use-modules (ice-9 rdelim)) Yes, I'd consider both of the above as downright doc bugs: the missing of (ice-9 rdelim) in the client code and letting the client aim at a different port the server is set up to listen to. As for the third... > When I do that, it seems to kinda work? >=20 > Hello client > Backtrace: [...] > ERROR: In procedure %read-line: > In procedure fport_read: Connection was reset by peer =2E.. it is working "as it is supposed to": the server closes the connection after sending the reply -- the client isn't set up to expect this and complains (note that it dutifully prints the server's answer "Hello client" before). So this one is confusing, but we'd need a bit more of discussion on how to "fix" it without complicating the examples too much. Ideas? Cheers --=20 t --KClxGuEwMjf64Da7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZXWyqgAKCRAFyCz1etHa Rg1TAJ43Nr24pc6xygTXJIwQs69yLbTj1QCfSmzyzR8Kc134k0gxq6z48P6Bpwk= =6Bjy -----END PGP SIGNATURE----- --KClxGuEwMjf64Da7--