Thanks for the detailed information. I was offline yesterday, so just catching up on emails etc. With this I should be able to duplicate it with just wsgi.file_wrapper and not even require Trac. I'll get on to this one today.
Thanks again. Graham 2008/8/22 illuminarti <[EMAIL PROTECTED]>: > > OK, I can reproduce this from scratch. If I have a pure text file, 8k > long (it just says 'The quick brown fox jumped over the lazy dog!' > over and over again.) > And roughly in the middle I put a single 0x00 character. > > If the null character is not exactly on the 4k boundary, I can > download it from Trac with no problems. > > If I take out a few characters to align the null as the first byte of > the second 4k of the file, the attempt to download the file stalls and > eventually times out after exactly 4k has been downloaded. > > In both cases it uploads just fine as an attachment to a ticket, and > can be displayed inline (since it's a text file, Trac is happy to > display it - the problem happens when I click on the 'Download in > original format' link). > > Wow. That's a doozy, isn't it? I have no idea why it happens, but at > least we know what triggers it. But since it's a real pain to try and > make sure the screenshots I'm uploading for the training materials I'm > writing don't have a zero byte every 4k characters, I really hope we > can find a solution :-) > > > > On Aug 21, 5:45 pm, illuminarti <[EMAIL PROTECTED]> wrote: >> Some more information - in every one of my three problematic files, >> the download cuts out on a 4kB boundary (44k in one case, 20k in the >> second, and 4k in the third). And in every case, the next character >> that should be transmitted is 0x00. >> >> Seems more than a coincidence... :-) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
