Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-77

TcpTransport should store serverAddress as value (not reference)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 6.0.0.Final
    • None
    • None
    • None

    Description

      See TcpTransport.serverAddress definition:

      const InetSocketAddress &serverAddress;

      When the TcpTransport is initialized, a reference to value on stack gets there. Then, the original InetAddress is deallocated and overridden with rubbish.
      Anything could happen then... In my case the TcpTransport was not properly returned to ConnectionPool because the server address was overridden.

      Attachments

        Activity

          People

            vblagoje Vladimir Blagojevic (Inactive)
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: