php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56388 Slow SFTP disconnection
Submitted: 2005-05-10 15:47 UTC Modified: 2005-05-18 00:50 UTC
From: felix at zango dot com Assigned: pollita (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 5.0.3 OS: any
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: felix at zango dot com
New email:
PHP Version: OS:

 

 [2005-05-10 15:47 UTC] felix at zango dot com
Description:
------------
in the middle of the php_ssh2_channel_stream_close function in ssh2_fopen_wrappers.c there is a php_sleep(2) call, I assume it is not actually needed but please make sure to remove it / check it out before releasing a stable version.

Reproduce code:
---------------
unset($sftp_ressource);

Expected result:
----------------
code executes instantly, SFTP connection is closed

Actual result:
--------------
code takes 2+ seconds to execute

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-18 00:50 UTC] pollita@php.net
arbitrary sleep() call removed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC