Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88560

Memory leak on QNetworkAccessManager post function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.15.3
    • 5.15.0, 5.15.1
    • Network: HTTP
    • None
    • Linux/X11, macOS, Windows

    Description

      Hi,

      I encountered a memory leak problem with Qt Network module. 

      I tried to send data to my web server which proposes a POST HTTP API, I used QNetworkAccessManager post function but I noticed my memory is increasing over time. 

      I joined in this post a simple code.
      In my code, there is the Qt project and a web server written with python. You can test this program by launching the Qt Project and python program, Python program needs python3 and flask. But you can reproduce the leak without web server (Post function will failed but you can notice that memory grows).

      Without Post function, I didn't notice memory leak.

      Let the 2 programs run and you can notice the memory of Qt program increases a little bit over time. (maybe 100ko every 4-5 minutes). 

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              manordheim Mårten Nordheim
              kyloentro Léo Ji
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes