XF2.0 xhr requests canceled after 30s

developr

Active member
My members with slow internet have problems to upload big files or avatars.

So I tried out what could be the problem... checked the nginx config for timeouts, checked php config as well. Then I tried different forums on different php versions.

In the example a user would like to add an 3.6MB jpg as a avatar. vBulletin and XF1 works fine. They use "post" to upload the file.
SoftwareMethod TypePHP VersionStatus
vBulletin 3postphp5.6ok
vBulletin 4postphp5.6ok
XF 1.5postphp7.1ok
XF 1.5postphp7.2ok
XF 2.0xhrphp7.2failed

XF2 use a xhr request to upload the files and here the request will be canceled exactly after 30s.

You can try it with the developer console in Google Chrome
190572

Could somebody reproduce this?
 
Thanks for your reply.

global max_execution_time and max_input_time ist set to 60.

XF1.5 and XF2.0 use the same php.ini and only XF2 cancel the upload after 30s.

The only difference is that XF2.0 use xhr instead of post method.
 
Hmm, technically, XHR does use a HTTP POST request as well

Given the same file on XF 1.5 that does fail on 2.X, how long does it take your server to generate the response according network tab in chrome dev tools?
 
That screenshot does not answer my question:
Given the same file that fails on XF 2.X, how long does it take your server on XF 1.5 to generate a response?
 
Now I can not reproduce it. I slowdown the speed in chrome dev tools but the upload takes only 2.3s in XF1.

In vBulletin3 (php5.6) the same file takes 1.2 minutes with slow 3G settings.
 
Top Bottom