Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8187658

Bigger buffer for GetAdaptersAddresses

    XMLWordPrintable

Details

    • b26
    • windows
    • Not verified

    Backports

      Description

        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

        Attachments

          Issue Links

            Activity

              People

                igerasim Ivan Gerasimov
                igerasim Ivan Gerasimov
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: