Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.2
-
None
-
-
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.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-135937 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
642592,1 | Only use invokeMethod() when necessary | dev | qt/qthttpserver | Status: NEW | +2 | 0 |
644545,2 | Make it clear that events must be processed to flush chunks to output | dev | qt/qthttpserver | Status: NEW | +1 | 0 |