For several weeks, I have had a issue with file_get_contents not returning the entire page. By that I mean if the page had three paragraphs, file_get_contents would return 2 or less paragraphs 90 percent of the time. The other day a new symptom occurred on the same web server with WordPress. Every time I would try to update wordpress or update wordpress plugins, I would get a error:
Download failed. transfer closed with XXXX bytes remaining to read
I searched and search for a answer and found no bugs with wordpress or with the three different versions of php I had tried.
Finally today I was on a different 2012 server and had issues downloading from SVN. Finally I found a solution , Disabling TCP Offloading. I disabled:
- IPv4 Checksum Offload
- Large Receive Offload
- Large Send Offload
- TCP Checksum Offload
Finally I tested again and everything was working normally!