[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: |
Maxim Cournoyer |
|
Subject: |
Re: How to abort a read from a socket after some time? |
|
Date: |
Sun, 21 Jan 2024 13:34:30 -0500 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Tomas,
Tomas Volf <~@wolfsden.cz> writes:
> Hello,
>
> I am trying to figure out how to abort a read from a socket after some time
> elapses. I failed to figure out how to do so.
If the reason you want to abort reading from a socket is because the
socket may not be ready, you could use select(2), which has a timeout
value.
See man 2 select or the corresponding 'select' procedure documented in
the Guile Reference manual.
--
Thanks,
Maxim