qizhengyu

Results comments of qizhengyu

Error log here: ``` Jan 19, 2018 10:24:28 AM io.vertx.core.impl.ContextImpl SEVERE: Unhandled exception java.lang.OutOfMemoryError: Java heap space at io.netty.util.internal.PlatformDependent.allocateUninitializedArray(PlatformDependent.java:194) at io.netty.buffer.UnpooledUnsafeHeapByteBuf.allocateArray(UnpooledUnsafeHeapByteBuf.java:34) at io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf.allocateArray(UnpooledByteBufAllocator.java:127) at io.netty.buffer.UnpooledHeapByteBuf.(UnpooledHeapByteBuf.java:58) at io.netty.buffer.UnpooledUnsafeHeapByteBuf.(UnpooledUnsafeHeapByteBuf.java:29) at io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf.(UnpooledByteBufAllocator.java:122) at...

@vietj Still run out of memory, see my code below: ```java vertx.fileSystem().open(fileToSend, new OpenOptions(), file-> { httpRequest.sendStream(file.result(), handler -> { System.out.println("response received"); }); }); ```

@vietj I'm sending a 2GB file. Thank you for your explanation! It worked by doing`.setFollowRedirects(false)`. Please feel free to close this issue.

@vietj I just pushed the code to my git. https://github.com/qizhengyu/vertx-practise You can run "Main.java" to start both HttpServer. http server1 bootstrap successful, listening on port: 8083 http server2 bootstrap successful,...

Server1 is behaving as a proxy, which download data from Server2 and forward to HTTP Response. Try to download a file with size 100MB, 1GB and 10GB. ## Expected Result:...

@vietj You file is too small. Try a 10GB test.tar file with `curl http://localhost:8083/file1`. You will notice, server1 takes a very long time to start stream the file.

You should observe that `time_starttransfer: 7.478691` will increase linearly. But 3GB for 7s is really fast, 1GB initially took almost 5s for Chrome to start download during my test. Also,...

This is my testing project to use classpath. In my product, I'm pulling data from an absolute path. I have a 60s timeout to start streaming on proxy server. It...

Should I set chunked = true or false for streaming?