php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hidenny at gmail dot com
New email:
PHP Version: OS:

 

 [2006-06-18 21:36 UTC] hidenny at gmail dot com
Description:
------------
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 ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] langemeijer@php.net
michael-139, I would like to see your changes. Could you send a patch file?
 [2012-06-12 14:17 UTC] langemeijer@php.net
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] langemeijer@php.net
-Status: Open +Status: Feedback
 [2012-10-06 09:27 UTC] langemeijer@php.net
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] langemeijer@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 21:01:29 2024 UTC