Thread
:
Steaming Files + Limiting Length
View Single Post
Nutrox
17 Creative Assets
2008-11-06 #
2
No problem with this one guys, I think I have nailed it. I have increased the chunk size to 4096 bytes (adjustable by the client), added a flush() after the echo() to make sure the bytes get pushed to the client as a stream, setup a shutdown handler to catch aborted connections, and also made sure the correct headers are sent when a client tries to continue a download/stream after disconnecting. It all seems to be working as expected.
Nutrox
View Public Profile
Visit Nutrox's homepage!
Find all posts by Nutrox