[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to abort a read from a socket after some time?
From: |
Tomas Volf |
Subject: |
Re: How to abort a read from a socket after some time? |
Date: |
Mon, 22 Jan 2024 12:52:35 +0100 |
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.
signature.asc
Description: PGP signature