asio::ip::tcp::resolver::iterator instances should be passed by value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.7
    • Affects Version/s: None
    • Component/s: Internal Code, Networking
    • None
    • Fully Compatible
    • ALL
    • Platform 8 08/28/15, Platform 7 08/10/15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we capture resolver iterators by reference then pass them to callbacks - potentially leading to dangling references.

      Internally, the iterator maintains a shared_ptr to the vector of basic_resolver_entry objects. We should pass the iterator by value to make sure the basic_resolver_entry vector stays alive.

            Assignee:
            Adam Midvidy (Inactive)
            Reporter:
            Adam Midvidy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: