Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.8.2
-
None
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.