Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.1
-
None
Description
The docs for QNetworkInterface::allInterfaces () [static] say:
Returns a listing of all the network interfaces found on the host machine.
There should be a second sentence warning that: "In case it fails to fetch the list of interfaces, it will return a list of size 0." (This is true on Unix, for example when the process is out of file descriptors and the qt_safe_socket(AF_INET, SOCK_STREAM, IPPROTO_IP) returns EMFILE.)
As written, the docs make it look like this routine can never fail.
Attachments
For Gerrit Dashboard: QTBUG-30301 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
54546,2 | Doc: added scenario in case of failure QNetorkInterface | stable | qt/qtbase | Status: MERGED | +2 | 0 |