50d63690ee[project @ robey@lag.net-20080323023616-fpo17kr0qxxbgthv] bug 200416: don't create a new logger for every channel and every sftp client or server. it causes python to leak lots of useless logger objects, because they never go away. instead, log the channel # in the message, and use only a couple of standard log nodes.
Robey Pointer
2008-03-22 19:36:16 -0700
419b11b741[project @ robey@lag.net-20080323020054-ar5bmythf7fr5rgk] in the test that verifies key renegotiation during a large file "put", also do a "get" of the large file (with prefetch) to verify that nothing screwy happens.
Robey Pointer
2008-03-22 19:00:54 -0700
613d2a2f24[project @ robey@lag.net-20080322215455-xb70ktut2l1bkzsx] patch from dwayne c. litzenberger to fix urandom support to work from within a chroot. i modified it slightly to remove os.urandom calls completely, since our direct file access is nearly identical to what python was doing.
Robey Pointer
2008-03-22 14:54:55 -0700
ceb65ed55f[project @ robey@lag.net-20080220055938-c772bcrnw9lm2kcd] for forwarded-tcpip connections, stuff the origin_addr in a public field in the Channel, in case recipients find it useful info.
Robey Pointer
2008-02-19 21:59:38 -0800
3319f556d6[project @ robey@lag.net-20080219074736-1fkyp8jl95amj5ky] add WarningPolicy to SSHClient, which logs a warning when a server host key isn't known, but allows the connection. also added an option to avoid searching for private keys, and made it check ~/ssh/ for windows.
Robey Pointer
2008-02-18 23:47:36 -0800
31544301f5[project @ robey@lag.net-20080124013849-jno9xkgwvvqrvuov] split auth tests into their own file, and clean up the remaining transport tests a bit (use existing refactoring).
Robey Pointer
2008-01-23 17:38:49 -0800
84eebc02f6[project @ robey@lag.net-20080121194216-q3n5ovpeyiqjua6p] patch from dwayne litzenberger to fix the PRNG to be more resilient when using windows, and some forking/threading environments.
Robey Pointer
2008-01-21 11:42:16 -0800
38835bc24c[project @ robey@lag.net-20080121190842-mq94nybu8qxhw1jl] for password authentication, only utf-8 encode the password if it's in unicode. this should let clients work around servers that expect non-utf-8 passwords (possibly because they predate the RFCs).
Robey Pointer
2008-01-21 11:08:42 -0800
d70878831c[project @ robey@lag.net-20071231003259-xwwescnkvb3e6vxc] be more explicit about setting buffering options, and make the default be "unbuffered", because with buffering on, writes are buffered, which can be very confusing over ssh and usually not what you want.
Robey Pointer
2007-12-30 16:32:59 -0800
e3d9b90ea1[project @ robey@lag.net-20071029030344-9adfzb9ulfodtepu] bug 157205: select() doesn't notify incoming stderr data, because stderr's pipe isn't hooked up to the fileno() BufferedPipe. to fix, i added an "or" pipe-event that can be triggered by either stdout or stderr, and hooked them both up to fileno(). added a unit test for the bug and one for the "or" pipe.
Robey Pointer
2007-10-28 20:03:44 -0700
946e4dbc29[project @ robey@lag.net-20070521023545-8a36vex4ewgdxcwk] merge in a modified form of a patch from alexander belchenko. this lets windows users use the 'win32all' module *or* the 'ctypes' module, if they have ctypes installed. python 2.5 comes with ctypes in the standard library.
Robey Pointer
2007-05-20 19:35:45 -0700
f384749a8c[project @ robey@lag.net-20070210235828-2a24iw2xqe4lnf42] patch from mpool to fix a python 2.5 warning: stat() returns floats for times and we want to encode them as ints.
Robey Pointer
2007-02-10 15:58:28 -0800
c1e3e85353[project @ robey@lag.net-20061227214016-ebfnh1q09zt8z3ej] 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.
Robey Pointer
2006-12-27 16:40:16 -0500
db89be96ef[project @ robey@lag.net-20061226012748-lmbxlsue9q2jzk8x] 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.)
Robey Pointer
2006-12-25 20:27:48 -0500
029b8989db[project @ robey@lag.net-20061215222108-7pu0151970w1e1lp] 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.
Robey Pointer
2006-12-15 14:21:08 -0800
7058f5ead2[project @ robey@lag.net-20061215211936-rgc3uzy5ai9h6qho] 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.
Robey Pointer
2006-12-15 13:19:36 -0800
48bb10694b[project @ robey@lag.net-20061120192137-1rcpiiq9mcd58m76] 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
Robey Pointer
2006-11-20 11:21:37 -0800
a9c51b23ce[project @ robey@lag.net-20061113041742-e24468a63d31b8bd] 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.
Robey Pointer
2006-11-12 20:17:42 -0800
e736341e20[project @ robey@lag.net-20061111004413-7bab08f1bad7f96f] 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.)
Robey Pointer
2006-11-10 16:44:13 -0800
482d0bcef2[project @ robey@lag.net-20061031223747-9fda3f2c1112c5dc] (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.
Robey Pointer
2006-10-31 14:37:47 -0800
4628a53acf[project @ robey@lag.net-20061031190617-1113fb493ff5b690] (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.
Robey Pointer
2006-10-31 11:06:17 -0800
cc3e383baf[project @ robey@lag.net-20060822025601-aab3b723b95d3a9c] 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
Robey Pointer
2006-08-21 19:56:01 -0700