Page 1 of 1

Long text files are corrupted while transfering

PostPosted: 03. August 2009 10:14
by vbhjckfd
Hi

I have some site with Prototype framework included. Nothing was working, so I start to digg in js code with Firefox 3.5.1. I figured out that prototype.js was corrupted while loading approximately on half of file. Some screen shoots (from FF source code browser and notepad++):

Image Image

Of course i checked original file but all was good with it.
Here is difference between original and returned by xampp file

xammp version: 1.7.2
os: windows xp sp3 eng

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 11:15
by Wiedmann
Some screen shoots (from FF source code browser and notepad++):

Hm. I don't see a difference in the pictures. Maybe you have uploaded a wrong browser screenshot?

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 11:21
by vbhjckfd
But you see that file content is corrupted and duplicated? First screenshot is from FF source code explorer, and second is the same just copypasted to notepad++ to see line numbers.

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 11:27
by Wiedmann
But you see that file content is corrupted and duplicated?

Well, both screens are the same code. But...

and second is the same just copypasted to notepad++ to see line numbers.

... if you just copy 'n paste the ff source to notepad++ that's clear.

If we should see a difference, you must open the original code in notepad++ (file open).
(I don't know anything about or have this "Prototype".)

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 11:37
by vbhjckfd
Ok. Just first difference, that show corruption of file.

Original: Image
Returned:Image

Full visual difference here

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 11:46
by Wiedmann
Ok. Just first difference, that show corruption of file.

Ok, there is a difference.

Is the file also corrupted, if you just download the file "prototype.js"?
(e.g. "wget http://localhost/prototype.js", if you have wget)

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 11:51
by vbhjckfd
I've just putted into FF direct link to prototype.js.
File is corrupted in 1.7.2 and normal in 1.6.8

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 12:11
by Wiedmann
And other downloads (similar or greater size), like a zip or exe or a simple txt file, and if you rename this file to *.txt?

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 14:00
by vbhjckfd
Still corrupted after changing file extension to txt.

50 Mb executable file is corrupted and won't start.
Image

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 14:10
by Wiedmann
Sometimes it can help to set EnableMMAP and/or EnableSendfile to Off.

Re: Long text files are corrupted while transfering

PostPosted: 03. August 2009 14:18
by vbhjckfd
Yes. It helps. Thank you.
I think it will be good to append link to this topic to FAQ