diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-08-25 20:14:49 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-08-25 20:14:49 +0200 |
commit | 2ffdf56bfe8ad35ac648a22a838b1ef01905b2d4 (patch) | |
tree | 35b9eb6a2a0e82244ace78c7a6a422ff819af53a /phpBB/includes/functions_admin.php | |
parent | 540ca1a8d88279b120b142c244c96c9fae9a867b (diff) | |
download | forums-2ffdf56bfe8ad35ac648a22a838b1ef01905b2d4.tar forums-2ffdf56bfe8ad35ac648a22a838b1ef01905b2d4.tar.gz forums-2ffdf56bfe8ad35ac648a22a838b1ef01905b2d4.tar.bz2 forums-2ffdf56bfe8ad35ac648a22a838b1ef01905b2d4.tar.xz forums-2ffdf56bfe8ad35ac648a22a838b1ef01905b2d4.zip |
[ticket/10278] Also set timeout on stream in get_remote_file().
From the PHP manual for fsockopen():
If you need to set a timeout for reading/writing data over the socket, use
stream_set_timeout(), as the timeout parameter to fsockopen() only applies
while connecting the socket.
http://www.php.net/manual/en/function.fsockopen.php
PHPBB3-10278
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index f7e19f3e7d..ee146ca214 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -3140,6 +3140,8 @@ function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port @fputs($fsock, "HOST: $host\r\n"); @fputs($fsock, "Connection: close\r\n\r\n"); + stream_set_timeout($fsock, $timeout); + $file_info = ''; $get_info = false; |