Safari hangs when uploading a huge amount of files

Originator:fs.giordano
Number:rdar://30701082 Date Originated:24-Feb-2017
Status:Open Resolved:
Product:Safari Product Version:10.0.3
Classification:Crash/Hang/Data loss Reproducible:Always
 
Summary:
When trying to upload 4000+ files (but occasionally also fewer) Safari hangs and doesn't complete the upload. Request goes into timeout.

Steps to Reproduce:
1. Publish a small script on a server to upload multiple files (see the attached file)
2. Download an image from lorempixel (small, I used 100x50 px)
3. Duplicate the downloaded file exponentially up to 8192 files
4. Send them to the server through the script just published

Expected Results:
Upload completes.

Actual Results:
Safari loads indefinitely, the upload hangs and the request timeouts.
More steps AFTER the timeout:
5. Try again to upload the files: Safari loads indefinitely and the upload hangs at the same percentage of the previous upload.
6. Try again to upload the last file of the list: Safari loads indefinitely and the upload hangs.
7. Try again to upload the first file of the list: the upload succeed.
8. Try again to upload another file not included in the list of previous files. Safari loads indefinitely and the upload hangs

It's something like "I can upload a maximum of yyy mb for tab or zzz files and I can't read more than these limits so I can't complete the upload"

So, to workaround the issue I need to force quit and restart Safari.

Version:
Safari 10.0.3 (11602.4.8.0.1) with El Capitan 10.11.6 (15G1217)

Notes:


Configuration:
The issue occurres every time

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!