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

QHttpServer, QHttpServerResponder and big files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8.2
    • Network: HTTP
    • None
    • All
    • 5
    • Foundation Sprint 129, Foundation Sprint 130, Foundation Sprint 131, Foundation Sprint 132

      In order to implement an http server that downloads files, I have implemented the chunk approach, using the functions writeBeginChunked(), write() writeEndChunked().
      As you can see in the attached example when I try to download a 5 gbyte file, the file will be load completely into the server ram and after will be send to the client.
      There is no way to flush the socket or to use the function writeChunk() in blocking mode, in order to call writeChunk() only then the socket has sent the data to the client.

      QtHTTPServer.zip

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

            oyheskes Øystein Heskestad
            mrdebug Denis Gottardello
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: