6 messages in com.googlegroups.pylons-discussRe: Serving Files w/ multipart ranges
FromSent OnAttachments
EricHolmberg24 Mar 2008 15:58 
Ian Bicking24 Mar 2008 16:01 
EricHolmberg24 Mar 2008 16:29 
Ian Bicking24 Mar 2008 16:33 
Deron Meranda24 Mar 2008 23:37 
EricHolmberg25 Mar 2008 09:24 
Subject:Re: Serving Files w/ multipart ranges
From:EricHolmberg (eric@public.gmane.org)
Date:03/25/2008 09:24:03 AM
List:com.googlegroups.pylons-discuss

This may or may not be useful, but I wrote a bunch of code which correctly handles the difficult part of multipart/byteranges and have been using it in real production systems for a while now.

It's not integrated into any particular web platform, but should be easy enough to incorporate into your own code. See

http://deron.meranda.us/python/httpheader/

Excellent code and documentation, Deron!

RFC spec. And if you haven't read the RFC closely, I highly recommend you do. There are some "surprises" in how byte ranges work that aren't immediately obvious.

Since I posted the messages yesterday, I finished the first cut of a multi-part range system similar in nature, but not as comprehensive as your code. I did handle what I think are most of the "surprise" cases. I'll see how my testing goes today and if I run into problems, I may just transition over to using your code.

If anybody's really interested in this, I can try to clean this stuff up and perhaps turn it into a more polished python package and publish it on PyPI (easy_install). Let me know.

I think that is a great idea.

Thanks again!

-Eric