[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR
From: |
Eli Zaretskii |
Subject: |
bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)? |
Date: |
Wed, 25 May 2016 19:24:45 +0300 |
> From: Ken Brown <kbrown@cornell.edu>
> Date: Tue, 24 May 2016 20:26:13 -0400
>
> There are two places in process.c where getsockopt(,,SO_ERROR,,) is
> used to check the status of a socket connection attempt. The first is
> at line 3289, where it is done on all platforms except MS Windows. The
> second is at line 5500, where it is done only on GNU/Linux:
FYI, the first instance is ifdef'ed away for Windows because we can
never have EINTR on Windows, and the surrounding code that handles
that case is tricky to get to compile on Windows (since we override
the definitions of FD_* macros with our own). MS-Windows does support
SO_ERROR.
> It would be better to use it on as many platforms as possible, since
> it's much more likely to give the real reason for a connection failure
> than the "error slippage" method.
Perhaps you or someone could write a small test program, and then
people here could run it various platforms and provide feedback.
- bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?, Ken Brown, 2016/05/24
- bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?,
Eli Zaretskii <=
- bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?, Ken Brown, 2016/05/25
- bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?, Eli Zaretskii, 2016/05/28
- bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?, Ken Brown, 2016/05/28
- bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?, Eli Zaretskii, 2016/05/28
- Prev by Date:
bug#23595: 25.1.50; file with chinese/japanse chars, vc-diff fails (HG, Git, RCS)
- Next by Date:
bug#23595: 25.1.50; file with chinese/japanse chars, vc-diff fails (HG, Git, RCS)
- Previous by thread:
bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?
- Next by thread:
bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?
- Index(es):