ReactiveX / RxNetty

Reactive Extension (Rx) Adaptor for Netty
Apache License 2.0
1.38k stars 255 forks source link

File Handling #194

Open benjchristensen opened 10 years ago

benjchristensen commented 10 years ago

We should add APIs for loading files using Netty so it is easy to create a file server.

There are at least two approaches needed:

1) the zero-copy file read/write 2) chunked reading for async handling

gorzell commented 10 years ago

@benjchristensen is this a good starting point for what you want?
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java

It seems to cover the chunked case in a reasonable way. I actually need this feature or something like it to be able to serve a full web app.

elandau commented 10 years ago

I issued a pull request to solve this in Karyon but will now try to implement in RxNetty instead. I still need to work on the zero-copy file read/write aspect of the solution.

https://github.com/Netflix/karyon/pull/95

elandau commented 10 years ago

Please see #211 for proposed solution