1

Whenever an upload takes longer than 22 seconds, then the upload ends up with connection was reset error. On the server side, the connection is in FIN_WAIT2 state. The problem is, that apache2 Timeout is 300 seconds, max_input_time is 60 seconds.

I have no idea what else can be causing this.

Mxx
  • 2,362
  • 2
  • 28
  • 40
aa007
  • 11
  • 1
  • 2

1 Answers1

1

To upload files using php you have to consider these settings in your php.ini file :

As a sample, my production server for file upload is setup like this :

upload_max_filesize = 2000M
post_max_size = 2000M
max_input_time = 60
memory_limit = 3092M
krisFR
  • 13,280
  • 4
  • 36
  • 42
  • All of that is OK - when I change to https then everything is working correctly. So I guess it's a problem on my ISP's side, I hope they will be able to fix it. – aa007 Jan 24 '14 at 16:54