Age | Commit message (Collapse) | Author |
|
a few more pychecker warning fixups
|
|
(possibly misguided) attempt to reduce paramiko's exports
|
|
move another demo script in, and do a bit more cleanup
|
|
i'm a dork, actually these are needed to login to the demo server
|
|
no longer need these
|
|
add 'clean' rule
|
|
code from mike looijmans for a windows interactive shell -- while i'm mucking around in here, clean up the demos a bit too
|
|
when setting a new log channel, pass that info on to the packetizer
|
|
winscp doesn't like it if the server sends version info before the client does
|
|
catch a case where the sftp server might give an invalid error code
|
|
some performance improvements: be a LOT less aggressive about stirring the randpool; use buffering when reading the banner; add a hook for using a native-compiled hmac (which gives the biggest boost, but should probably be done in pycrypto)
|
|
john points out i could just use None for no-value and it would be a lot simpler... good point
|
|
john a meinel caught a typo in the previous sort() patch
|
|
add Transport.atfork to handle the case where a forked child needs to cleanly dispose of a Transport where the socket is shared with its parent
|
|
patch from jan hudec to fix a python 2.4-ism
|
|
fix a bunch of pychecker warnings, some of which were actual (but unlikely) bugs
|
|
ENOTDIR should be translated into NO_SUCH_FILE -- openssh does it, and there really isn't any better mapping for it
|
|
add setuptools/easy_setup support
|
|
bump version to 1.5.2
|
|
experimental util functions for parsing/getting openssh host config, and unit tests (turned out to be pretty easy)
|
|
don't call _send_user_message() while holding the channel lock. the call may
block waiting for CTS (during rekey), and the feeder thread may be waiting on
the channel lock to clear out channel traffic before it gets to the kex-init.
instead, the 2 methods that wanted to send from inside the lock now just return
messages to send. slightly hacky but functional. :)
|
|
remove pre-1.0 news, bzr will preserve it for future archivists ;)
|
|
add comments to demo and demo_simple explaining that they don't work on windows
|
|
add unit test for compression
|
|
remember once a transport is authenticated, so that after rekeying when using openssh-style delayed zlib (zlib@openssh.com), we know it's okay to immediately start new compression
|
|
fix typo in doc
|
|
windows users who switch between cygwin and native mode may sometimes have an SSH_AUTH_SOCK environ var set from cygwin, even when in native mode there's no such thing as an AF_LOCAL socket -- check for native windows mode and avoid trying unix ssh agents in that case
|
|
turn down output for unit tests by default, but add --verbose option to manually crank them back up
|
|
new unit test for doing a bunch of prefetches at once
|
|
when closing an sftp file because of __del__, don't wait for a response, just shoot off a request and leave (on linux, the GC is run from a devoted thread)
|
|
serialize outgoing requests (duh) -- when prefetching multiple files, there may be several threads pumping out read requests
|
|
only create the log filter once, so it doesn't get applied more than once (tiny thing that bothered me during debugging)
|
|
oops, forgot to add this file -- guess friday really is hawaiian shirt day :)
|
|
add tentative compression support (off by default)
|
|
nail down select() on EOF: occasionally a channel would be closed remotely but select() wouldn't trigger. when a channel gets EOF or is closed, set the pipe FOREVER.
|
|
dumb test to verify utf8 encoding
|
|
convert_status is already called. calling it again was breaking van dyke sftp servers, which add garbage to the end of their sftp packets
|
|
copy from jaramiko: only check for rekey at the beginning of a packet
|
|
add 'x' flag to open to allow O_EXCL behavior
|
|
in Transport.__del__, don't try to clean up attributes that were never created
|
|
oops, this file wasn't saved yet when i did the randpool.stir() commit
|
|
bump up version to 1.5.1
|
|
add a few more randpool.stir() calls
|
|
fix a few windows bugs (and broken str() on SFTPAttributes) reported by grzegorz makarewicz
|
|
raise the max packet size so that the max sftp packet will fit
|
|
packet read sizes were overestimated by 1 byte
|
|
don't attempt to start a rekey negotiation from within send_message -- always do it from the feeder thread. this prevents a situation where more than one thread may decide spontaneously to rekey, sending multiple kexinit messages, which confuses the hell out of the remote host :) also, do some locking around the clear-to-send event, to avoid a race when we first go into rekeying. add some tests for these things too
|
|
the window-adjust can be sent outside of the lock, as long as the window size tracking is done within the lock (ie: allocate window space within the lock, then send the ack later) -- helps avoid deadlocks
|
|
add SFTPFile.prefetch() to allow pre-fetching a file that will be downloaded in full -- quick testing showed this could speed up downloads 3x or more
|
|
i think seek_cur had a bug here
|