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

From: Date: Tue, 23 Feb 2016 19:52:56 +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-199430@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:

Yeah, i was asking for exactly this. Now, libssh2-1.7.0 was released, so upgrades to libssh2 and
libcurl are made anyway. I made snapshots for the variant you've mentioned http://windows.php.net/downloads/snaps/ostc/71566/
, they include libssh-1.7.0 and libcurl-7.47.1. If the tests are going good, chances are to get
these upgrades into the next release.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2016-02-19 17:18:36] cphill at email dot arizona dot edu

We are using php-5.6.18-nts-Win32-VC11-x86. Is that the information you need?

------------------------------------------------------------------------
[2016-02-19 12:11:32] ab@php.net

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.

------------------------------------------------------------------------
[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 (#199430) next »