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.