Bug #71566 [Opn->Fbk]: cURL SFTP Transfers Extremely Slow / Timing Out

From: Date: Fri, 19 Feb 2016 12:11:33 +0000
Subject: Bug #71566 [Opn->Fbk]: cURL SFTP Transfers Extremely Slow / Timing Out
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199335@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71566&edit=1

 ID:                 71566
 Updated by:         ab@php.net
 Reported by:        cphill at email dot arizona dot edu
 Summary:            cURL SFTP Transfers Extremely Slow / Timing Out
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            cURL related
 Operating System:   Windows Server 2008 R2 Standard
 PHP Version:        5.6.18
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for the report. If you're interested in testing a LibSSH master build, please let me
know which exact PHP build you're using.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2016-02-10 20:22:32] cphill at email dot arizona dot edu

Description:
------------
Note that the script below with the CURLOPT_BUFFERSIZE commented illustrates the problem.
Uncommenting the CURLOPT_BUFFERSIZE line that sets a 4096 buffer size resolves the problem. 

This appears to confirm the issue report libssh2 #50 (see https://github.com/libssh2/libssh2/issues/50).
We encountered timeout failures on our sftp transfers immediately upon upgrading from PHP 5.6.17 to
5.6.18 that seems to have problems with SFTP transfers when using the default buffer size.


Test script:
---------------
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $remote);
curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_SFTP);
curl_setopt($curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_PUBLICKEY);
curl_setopt($curl, CURLOPT_SSH_PRIVATE_KEYFILE, $keysFolder.$keyFileName);        
curl_setopt($curl, CURLOPT_KEYPASSWD, $password);                                 
//curl_setopt($curl, CURLOPT_BUFFERSIZE, 4096);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($curl);
$info = curl_getinfo($curl);
myPrintArray($info);



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71566&edit=1


Thread (6 messages)

« previous php.bugs (#199335) next »