Replace HTTPRequest's timeout by connect_timeout + read_timeout
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 26 Nov 2020 11:26:00 +0000 (12:26 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 26 Nov 2020 11:26:00 +0000 (12:26 +0100)
commit2dbd5654cb9faff45bb51df9a2f3834bd320cc00
treef81dee205594e1c15e8f9a64f1337a1c9ff5d664
parentd9e6570005e815514a9a393f336f2e2ddb055cf5
Replace HTTPRequest's timeout by connect_timeout + read_timeout

The timeout in 5.2 only applied to the connect() syscall. Guzzle's timeout
option applies to the total transfer. Replace it by connect_timeout +
read_timeout for backwards compatibility for code that expected the actual
transfer to take an arbitrary amount of time.
wcfsetup/install/files/lib/util/HTTPRequest.class.php