Java project that enables File Streaming through HTTP at blazing high throughput. Expect to max out your network interface. Based on Netty.io and heavily inspirated from Http Static File Server.
Build it using maven.
Then:
java -cp target/repeating-files-streaming-*.jar ch.noisette.io.httpstream.HttpStreamServerMain [portNumber [chrootDir]]
portNumberset the port the streaming server will listen too. If not set, a free port will be randomly picked upchrootDiris the base directory from where file will be streamed. If not set, the default chroot dir is${user.dir}/repeating-files. Particular care is taken to not go out of this chroot doitr
curl http://server:portNumber/relative/path/to/file[?numberOfTimesToRepeatTheFile]
numberOfTimesToRepeatTheFiletells the number of times the file will be append to the stream before closing the connection. It not set, the file will be appened forever.