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.