|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-14 21:19 UTC] langemeijer@php.net
[2012-06-14 21:19 UTC] langemeijer@php.net
-Status: Open
+Status: Duplicate
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 21:00:01 2025 UTC |
Description: ------------ 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. anyone who need it.send me a email. Reproduce code: --------------- if ( bytesread != libssh2_channel_write(remote_file, buffer , bytesread) ) ) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed copying file"); php_stream_close(local_file); libssh2_channel_free(remote_file); RETURN_FALSE; } Expected result: ---------------- bytesread == libssh2_channel_write(remote_file, buffer , bytesread) Actual result: -------------- bytesread <libssh2_channel_write(remote_file, buffer , bytesread) it breaks and report a warning where send a large file.