[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | wget2 doesn't honour --timeout option (#671)
From: |
Roger Marco Hernandez (@RogerMarcoHernandez) |
Subject: |
Re: wget2 | wget2 doesn't honour --timeout option (#671) |
Date: |
Mon, 08 Jul 2024 09:08:02 +0000 |
Roger Marco Hernandez commented on a discussion:
https://gitlab.com/gnuwget/wget2/-/issues/671#note_1987294227
As far as I am concerned, SO_SNDTIMEO applies to POSIX-2017 specification, so
POSIX compliant systems should be alright. Regarding Windows systems, they do
have SO_SNDTIMEO, but their timeout arguments is a DWORD (32-bits) integer
(I'll attach the updated patch for support with Windows).
**TL;DR**
I also thought of using pthreads wait condition timeouts, however, that is more
narrow than SO_SNDTIMEO, and obviously fails without pthreads or with single
thread executions. Yet another solution could be using signals, but that's too
cumbersome and risky, and I believe it's an awful solution.
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/issues/671#note_1987294227
You're receiving this email because of your account on gitlab.com.