Age | Commit message (Collapse) | Author |
|
add get/put to the sftp demo
|
|
bump copyright year to 2007
|
|
improve x11 test and add a test for reverse port forwarding
|
|
add a convenience method for open_forwarded_tcpip_channel
|
|
slightly improve docs; mention check_channel_x11_request
|
|
fix a couple of typos discovered by mczepiel.
|
|
add another test to check out private key auth.
|
|
patch from mpool to fix a python 2.5 warning: stat() returns floats for
times and we want to encode them as ints.
|
|
an errant slash was making unit tests unrunnable on windows
|
|
as john arbash meinel points out, this assert wasn't validating internal
consistency, because a readv() request may ask for more data than is left
in the file. so remove the assert.
|
|
once, this test failed, so add a timer
|
|
fix bug in prefetch confirmation
|
|
if connecting to the agent fails, assume it's just not there, and don't
raise an exception. (suggestion from martin pool on bazaar-dev.)
|
|
remove silly comment about compression not being tested
|
|
don't need to expanduser twice
|
|
add a ResourceManager to replace __del__ methods, and use it in SSHClient
to automatically close any open transport when the SSHClient is collected.
this won't work on Transport itself (to close the attached packetizer)
because Transport starts up its own thread, and the threading library
keeps a Transport object alive to run that thread. i think that's okay;
the SSHClient interface is meant to be the easier one, so that's the one
where it's important that some auto-cleanup is attempted.
|
|
bug 75370: notice garbage sftp packets
since sftp packets shouldn't be larger than about 32k, if the first length
byte is non-zero (ie, the packet size > 16M), raise an exception.
|
|
potential port forwarding support; probably buggly cuz i haven't added unit tests yet :)
|
|
absorb socket.errors caused by a closed socket if we knew it was closed
|
|
add support for opening x11 channels, and a unit test
|
|
reorder the closing of the pipe in Channel.close() to make sure it happens even when the channel is closed by the remote host first
|
|
bump version to 1.6.4 (yanma) and trim the README changes-history a bit
|
|
sometimes the sftp module is used with raw sockets, not just paramiko
Channels. in this case, calling recv() will never return. so notice
this and use select() to give python a chance to notice a closed socket.
this kind of thing is especially useful for unit tests.
|
|
a bit of cleanup in close() to try harder to avoid having lingering threads
|
|
try a trick that should let 'hostkeys[hostname][keytype] = key' work for
HostKeys objects again.
|
|
use python from env for unit tests
|
|
bug 70398:
allow constructions like:
hostkeys['hostname'] = {}
to create an empty host entry object, so that future attempts to set
keys will at least not throw an exception. (they'll still silently do
nothing, though.)
|
|
(bug 69222)
on some recent linux kernels, a socket can return "readable" from select,
but a subsequent read() will return EAGAIN. this is against the contract
of select(), so python's socketmodule doesn't catch it or handle it.
therefore, we need to. EAGAIN should now be treated the same as a
socket timeout.
|
|
(bug 69330)
in SFTPClient._auth, check for the existence of the rsa/dsa keys before
trying to open them, so that an I/O exception doesn't mask an earlier
one.
|
|
include setup_helper.py in the manifest
|
|
bump version to 1.6.3
|
|
might as well assert this
|
|
i think the compression needs to be inside this lock in order to preserve order
|
|
bug fix from mike looijmans: notify any thread waiting in accept() when the transport dies
|
|
trivial doc fixes
|
|
merge patches from wouter van heyst and john arbash-meinel for fixing tarballs on os x, and fixing md5 on linux
|
|
clean docs too
|
|
trap EOF errors when reading a response, and translate into SSHException
|
|
fixes from mike barber for chdir and sftp attr __str__
|
|
fix from john arbash-meinel for the stub sftp server's default open mode
|
|
better way to change the module name
|
|
sadly, revert the append optimization -- it breaks for openssh
|
|
remove usage of has_key, which is dangerous and deprecated
|
|
fix a couple of pcheck warnings
|
|
fix __setitem__ to do the right thing
|
|
ok, ok, switch back to open()
|
|
when a file is open for append, don't stat to get the file position unless the user asks for it explicitly
|
|
don't automatically make epydocs for the private (internal) methods and classes
|
|
add 'flags' param to SFTPHandle and make the default impl avoid calling tell() when in append mode; add proper append-mode support to stub_sftp
|
|
bump version to 1.6.2
|