Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add option to start streaming from a custom position in FileStreamer #223

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant

lmars commented Jul 17, 2011

This allows HTTP servers to serve HTTP Range requests using EM::FileStreamer by passing in a position to start from.

For example, a HTTP request for a file sent with the header Range: bytes=50000- can be served using EventMachine::FileStreamer.new(connection, filename, :position => 50000

I've also fixed test_stream_large_file_data to actually test a large file (a large file being larger that 16k)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment