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

QHttpServer, QHttpServerResponder and big files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.2
    • Network: HTTP
    • None
    • All

    Description

      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

      Attachments

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

        Activity

          People

            manordheim MÃ¥rten Nordheim
            mrdebug Denis Gottardello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes