Explicitly set the stream timeout
authorAlexander Ebert <ebert@woltlab.com>
Wed, 8 Apr 2020 13:01:18 +0000 (15:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 8 Apr 2020 13:01:18 +0000 (15:01 +0200)
wcfsetup/install/files/lib/system/io/RemoteFile.class.php

index 38343ec3a7e8b6e879ed5685cfba961eda12767f..4e211ff500d028cd61f9bf36b81a3db892d78e80 100644 (file)
@@ -62,6 +62,8 @@ class RemoteFile extends File {
                if ($this->resource === false) {
                        throw new SystemException('Can not connect to ' . $host, 0, $this->errorDesc);
                }
+               
+               stream_set_timeout($this->resource, $timeout);
        }
        
        /**