From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Volf <~@wolfsden.cz> Newsgroups: gmane.lisp.guile.user Subject: Re: How to abort a read from a socket after some time? Date: Mon, 22 Jan 2024 12:52:35 +0100 Message-ID: References: <87mssy8rih.fsf@gmail.com> <582a8386-75cb-497d-b886-39b92d05bbcf@starynkevitch.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XpRV4CCBReLZ4i5E" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8702"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Basile Starynkevitch Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Jan 22 12:53:26 2024 Return-path: Envelope-to: guile-user@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 1rRsrj-0001zw-Gn for guile-user@m.gmane-mx.org; Mon, 22 Jan 2024 12:53:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRsrH-00065q-0e; Mon, 22 Jan 2024 06:52:55 -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 <~@wolfsden.cz>) id 1rRsrB-000647-5P for guile-user@gnu.org; Mon, 22 Jan 2024 06:52:50 -0500 Original-Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rRsr7-0007LP-IN for guile-user@gnu.org; Mon, 22 Jan 2024 06:52:48 -0500 Original-Received: by wolfsden.cz (Postfix, from userid 104) id 568062738D9; Mon, 22 Jan 2024 11:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1705924356; bh=4V5gNnRmSebE0O4NW6n6+LPJnbCdfhMfSID0OeCe7TM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=wnloteRg9TNNTzxhR6R9/XChBx/APiawQ7yBY0Im8T+rGjIY4uuKLy2futCCB/Slo Hxx7jS8pNA7gO8G7xu6wPpW1x24LGj+ysmfA9aMANMZ4hp8Ts9PiAxSAOgpoFi2Zqz 4OR+8EcAkrcu4peODsyLfvIgG+11DL8quohRo5Eii5yJmevzPP1Yh1jXJ5fsIaNiAs uwGUnWDmgjv6O618YmHZHh1dynV2iN7PrAKbyIhp6EDKzadp6a5nvX+h6nC8xdUiF3 6UU51AWCWwTvZGeAMAV0sK8AK029/TktyY/Xy7Rx4SLrlBVEU5y1pTO2cIMc2oJIsO IqTzlJ+XFgr4bnxos3ces3BPXOR/8mOZeOY7JOXT0OrrNjQ5WLd0voSGdzNELhFZy1 ZeDGdLF++V1zMmQGj612K62+nSqDa0wB35Mklx1TQo1SXrP5j4sDssVfZlQ+9jvPZN 4aLoVa0Y5eAQjVdjewbZTlbj1LemSCCrP1lob3ruryMwStYJX6Tnov7wbbZEz+Vj82 jNgi+LVQqn+fl+1tWgK9mk+vNO8P4j58yjBxx5FUCDUmWQRE3LJ0tpipODv1uwquft JXRdLtoP898jlD4q9aj5XF1NLD3/KTy7stLjUlmtirpmv+ssfP3XAcbIMAuhpG1yBx 6E9snpbgAhe9D08BUbyeN66o= Original-Received: from localhost (unknown [146.70.134.132]) by wolfsden.cz (Postfix) with ESMTPSA id DD9C92730DF; Mon, 22 Jan 2024 11:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1705924356; bh=4V5gNnRmSebE0O4NW6n6+LPJnbCdfhMfSID0OeCe7TM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=wnloteRg9TNNTzxhR6R9/XChBx/APiawQ7yBY0Im8T+rGjIY4uuKLy2futCCB/Slo Hxx7jS8pNA7gO8G7xu6wPpW1x24LGj+ysmfA9aMANMZ4hp8Ts9PiAxSAOgpoFi2Zqz 4OR+8EcAkrcu4peODsyLfvIgG+11DL8quohRo5Eii5yJmevzPP1Yh1jXJ5fsIaNiAs uwGUnWDmgjv6O618YmHZHh1dynV2iN7PrAKbyIhp6EDKzadp6a5nvX+h6nC8xdUiF3 6UU51AWCWwTvZGeAMAV0sK8AK029/TktyY/Xy7Rx4SLrlBVEU5y1pTO2cIMc2oJIsO IqTzlJ+XFgr4bnxos3ces3BPXOR/8mOZeOY7JOXT0OrrNjQ5WLd0voSGdzNELhFZy1 ZeDGdLF++V1zMmQGj612K62+nSqDa0wB35Mklx1TQo1SXrP5j4sDssVfZlQ+9jvPZN 4aLoVa0Y5eAQjVdjewbZTlbj1LemSCCrP1lob3ruryMwStYJX6Tnov7wbbZEz+Vj82 jNgi+LVQqn+fl+1tWgK9mk+vNO8P4j58yjBxx5FUCDUmWQRE3LJ0tpipODv1uwquft JXRdLtoP898jlD4q9aj5XF1NLD3/KTy7stLjUlmtirpmv+ssfP3XAcbIMAuhpG1yBx 6E9snpbgAhe9D08BUbyeN66o= Mail-Followup-To: Basile Starynkevitch , guile-user@gnu.org Content-Disposition: inline In-Reply-To: <582a8386-75cb-497d-b886-39b92d05bbcf@starynkevitch.net> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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_PASS=-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-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19414 Archived-At: --XpRV4CCBReLZ4i5E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2024-01-21 19:57:06 +0100, Basile Starynkevitch wrote: > The poll(2) system call (for details see > https://man7.org/linux/man-pages/man2/poll.2.html ....) could be preferred, > and has a simpler timeout (milliseconds). It also can deal with more (or > few, but numerically bigger) file descriptors than select. > > So I suggest using poll, not select. I did not realize there is (ice-9 poll), seems to be undocumented. I can live with being linux-only, so poll should work for me. Thanks :) Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --XpRV4CCBReLZ4i5E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmWuVwMACgkQL7/ufbZ/ wakD1Q/+Mxl3Kr85QifWP6F14DuZiCUfxRrSmcK0CXU5aK/u4hYxngUNJni6EwjT t5AKYueljLa9kytoYa5p2G3vSiIYQmlrXwfCkU9maQ1SH7Bdt8GB73H7GTE3fCyF MiefLuOFJxyY7D6ta2jvV4AlN2+2IekqK0cxlVTGn9KklP5QjrznC8iIsQnpl5UP wY2ryfpOYc9PVOXzF9a5ViOm9Rv+bedIb0CizuZ3UhMrJCysyeE0nwRFCSJY+nZG BWlAWBlMlx4MAUxbsYoZoRjMfFiuFqN+peUcd1F/+wt86Qb8XR7ircCZ+F1/9RkJ VyH1izIy0y10nH8gs5l7YmWQyFjZosYrKrlUNlSTFVzhB5fDcoZ5Ti/i4J1fUml5 +TDr7/o5rcZT4BvFaO8GhhchOa1XhZGk7Kh62rqj6GSLIPRJaqt3HHzd14B0Pu4x KVaYpVG3EiVEA41YbX8HiAsqdszVF4Nj9KYaNI15Fz/BpiHH/mBVeQ957gX9jgQa TpFRWtpHZmsiWfrBXSmfo7v+OEJBIwD38QtuLsn6KJatBSm+/K3pO93bwRlX6GHp vt1wZFQpZRidDYLVs/0iwVNLw8/CW2IqL5UxkTxSZmfDZk87Aq6Rq0xmN9bWpJBO RON614/VgWhEIZCG3C+L+5Tuglc2Eb67iA7eNLvK9P3zDP/H/fU= =SQT2 -----END PGP SIGNATURE----- --XpRV4CCBReLZ4i5E--