Relates :
|
MSDN recommends [1] to use 15K buffer when invoking GetAdaptersAddresses(). It also suggests (in the example code) to do a few retries in a case of a failure due to insufficient buffer size). We have reports that the number of the network adaptors can change at the early stage of the OS boot cycle, so if a Java application is running at that time it can experience a trouble because of too small buffer. It seems to be a correct approach to follow the recommendations from MSDN in this case. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa365915(v=vs.85).aspx