Bug #63937 [Opn->Ver]: Upload speed 10 times slower with PHP
Edit report at https://bugs.php.net/bug.php?id=63937&edit=1
ID: 63937
Updated by: cmb@php.net
Reported by: levi_tedder at hotmail dot com
Summary: Upload speed 10 times slower with PHP
-Status: Open
+Status: Verified
Type: Bug
Package: FTP related
Operating System: Windows
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I can confirm that ftp_put() uploads are slow on Windows.
Increasing the FTP_BUFSIZE[1] to a value just a bit smaller than
SO_SNDBUF (64KiB on my system), shows a performance improvement of
about 30%. However, uploading from WSL1 still takes only half the
time. There might be room for (further) improvements on Windows,
but maybe this is just a Windows limitation. This needs further
investigation.
Note the ftp_put() relies on select(3), so performance is
certainly not optimal on either operating system.
[1] <https://github.com/php/php-src/blob/php-7.4.15/ext/ftp/ftp.h#L38>
Previous Comments:
------------------------------------------------------------------------
[2018-03-20 01:20:32] tung12a1 at yahoo dot com
Is there any progress? I have found the same issue.
------------------------------------------------------------------------
[2017-12-04 14:34:08] luk dot krchnak at gmail dot com
Is there any progress? I have the same issue... Thanks.
------------------------------------------------------------------------
[2017-09-10 10:39:55] awlurker at yandex dot ru
The problem still exists and is very annoying.
PHP FTP upload functionality seems to be almost unusable because of this.
------------------------------------------------------------------------
[2013-09-05 19:46:40] dmulder at qnx dot com
I have seen the same issue, windows 2008. Upload speeds are much slower than other platforms. I did
find this bug reference in libcurl which may be relevant
http://sourceforge.net/p/curl/bugs/1188/?page=1
------------------------------------------------------------------------
[2013-08-21 21:01:09] r dot pestel at googlemail dot com
I have the same problem with cUrl (posting files via HTTP), on Windows Server 2008
and 2012 and Windows 7. Always about 10x slower than possible on the server side
(If the server could send 10 mbps I get 1 mbps, even if this is 100% of my
capacity).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=63937
--
Edit this bug report at https://bugs.php.net/bug.php?id=63937&edit=1
Thread (10 messages)