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

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

      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.

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

              Created:
              Updated:
              Resolved: