OSDN Git Service

by default hosts shall be not found
authorIvailo Monev <xakepa10@gmail.com>
Tue, 17 May 2022 04:37:21 +0000 (07:37 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 17 May 2022 04:37:21 +0000 (07:37 +0300)
commit2923077ba96aac696cb2f76ca6d03f24cbc3860d
treec046896637e6df2d2ce12733c343418e8c217197
parent1b2571c06333f7a871b102d72cf8e16f057a9fe8
by default hosts shall be not found

otherwise, if a default constructed QHostInfo object is emited from thread
used to lookup it will be considered as sucessfull lookup (i.e. the error
is QHostInfo::NoError), even if the host is found it may be unreachable
right after the lookup is done (e.g. lookup before fetch, lookup succeeded,
server crashes before fetching data from it - server is unreachable). in
other words - it's a stat() before open() like problem

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/network/kernel/qhostinfo_p.h
src/network/kernel/qhostinfo_unix.cpp
src/network/socket/qabstractsocket.cpp