|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57094 time out
Submitted: 2006-06-18 21:36 UTC Modified: 2012-10-06 09:27 UTC
From: hidenny at gmail dot com Assigned:
Status: No Feedback Package: ssh2 (PECL)
PHP Version: 5.1.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hidenny at gmail dot com
New email:
PHP Version: OS:


 [2006-06-18 21:36 UTC] hidenny at gmail dot com
I am doing a project which has upload about 20mb to another host through ssh2_scp_send and the speed usually ~30kb. I always face the timeout problem when it's uploading such large file. I have used set_time_limit already, but still got failure.

I ran the script through web. Does set_time_limit take effet on ssh2_scp_send ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-18 11:02 UTC] paulius_k at yahoo dot com
Try increasing max_input_time
 [2010-03-10 09:07 UTC] michael-139 at hotmail dot com
i just got the same problem.
and i modify the function ssh2_scp_send.
i make it resume sending when it breaks,

it works.cause the socket is block.
 [2012-06-12 14:05 UTC]
michael-139, I would like to see your changes. Could you send a patch file?
 [2012-06-12 14:17 UTC]
As a general solution we could implement a resume like functionality to 
ssh2_scp_send() or create a new function for it.

I'm assuming you used set_time_limit() to set the limit to a ridiculous high 
number and the transfer aborts before that?

If you use php in apache, be aware that apache might kill your request if it 
feels it's been running too long without outputting anything.
 [2012-06-12 14:18 UTC]
-Status: Open +Status: Feedback
 [2012-10-06 09:27 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2012-10-06 09:27 UTC]
-Status: Feedback +Status: No Feedback
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Sep 28 00:03:57 2022 UTC