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

QHttpServer, QHttpServerResponder and big files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2
    • Network: HTTP
    • None
    • All
    • Foundation Sprint 129, Foundation Sprint 130, Foundation Sprint 131

    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

        For Gerrit Dashboard: QTBUG-135937
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews