Hi Ben, Sorry for the late answer. I was way busy w/paper-work. :-P On Mon, Dec 05, 2005 at 03:43:07PM -0800, Ben Wiley Sittler wrote:
One more update (this should be the last for awhile) -- this fixes crashes caused by stalled incomplete reads (due to EAGAIN on the C side.)
I've attached the updated python filter in addition to the full patch since only the python changed.
Thanks, I gave the script a review. Probably I'll rewrite it in C and keep the python codebase as a starting point for other dpis. OTOH, It's good to have a python dpi example that shows it's easy to develop dpis.
On 12/5/05, Ben Wiley Sittler <bsittler@gmail.com> wrote:
This updated copy of the patch corrects Content-Type defaulting (text/plain;charset=US-ASCII if empty, text/plain if empty but charset given.)
This appears to work with all the Mozilla data: URL test-cases except the JavaScript, CSS, XUL and MP3 ones (the MP3 one deserves further investigation.) See:
http://www.mozilla.org/quality/networking/testing/datatests.html
Hmmm, I'll try to upload a C translation soon. Can you continue from there? -- Cheers Jorge.-