Commit Graph

278 Commits

Author SHA1 Message Date
Robey Pointer b955ee02cc [project @ robey@master-shake.local-20060127031302-7bb0582ea98a60bd]
move another demo script in, and do a bit more cleanup
2006-01-26 19:13:02 -08:00
Robey Pointer 77eada9fb4 [project @ robey@master-shake.local-20060127031139-0ca8125e66edccc5]
i'm a dork, actually these are needed to login to the demo server
2006-01-26 19:11:39 -08:00
Robey Pointer c8738fe17c [project @ robey@master-shake.local-20060127030513-a5bafc0a07b1afdc]
no longer need these
2006-01-26 19:05:13 -08:00
Robey Pointer e9e695aa4e [project @ robey@master-shake.local-20060127030342-c9c50eae5c4ebe17]
add 'clean' rule
2006-01-26 19:03:42 -08:00
Robey Pointer 0efdc8af5f [project @ robey@master-shake.local-20060127030114-b6810c4c29964a4e]
code from mike looijmans for a windows interactive shell -- while i'm mucking around in here, clean up the demos a bit too
2006-01-26 19:01:14 -08:00
Robey Pointer 7058195e38 [project @ robey@master-shake.local-20060126205008-cbf83d6697711e37]
when setting a new log channel, pass that info on to the packetizer
2006-01-26 12:50:08 -08:00
Robey Pointer d44035e716 [project @ robey@master-shake.local-20060126204925-3cc14de36a8c5c1f]
winscp doesn't like it if the server sends version info before the client does
2006-01-26 12:49:25 -08:00
Robey Pointer f5421e7600 [project @ robey@master-shake.local-20060120182350-92e8f21d029f8634]
catch a case where the sftp server might give an invalid error code
2006-01-20 10:23:50 -08:00
Robey Pointer fa90f1247a [project @ robey@master-shake.local-20060120182320-d569b04adc2bd622]
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)
2006-01-20 10:23:20 -08:00
Robey Pointer f02a4bcded [project @ robey@master-shake.local-20060119232616-edcb93583d3dc005]
john points out i could just use None for no-value and it would be a lot simpler... good point
2006-01-19 15:26:16 -08:00
Robey Pointer 1731d51b51 [project @ robey@master-shake.local-20060119072156-31241967db33d1d9]
john a meinel caught a typo in the previous sort() patch
2006-01-18 23:21:56 -08:00
Robey Pointer 6a145dea09 [project @ robey@master-shake.local-20060119065503-341b1f0c0d161e22]
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
2006-01-18 22:55:03 -08:00
Robey Pointer be7d99886c [project @ robey@master-shake.local-20060115063338-50ebabff6276f500]
patch from jan hudec to fix a python 2.4-ism
2006-01-14 22:33:38 -08:00
Robey Pointer cb3008b402 [project @ robey@master-shake.local-20060115063008-4f68552398868788]
fix a bunch of pychecker warnings, some of which were actual (but unlikely) bugs
2006-01-14 22:30:08 -08:00
Robey Pointer 26397bff47 [project @ robey@lag.net-20051216180002-5661c935adb8262e]
ENOTDIR should be translated into NO_SUCH_FILE -- openssh does it, and there really isn't any better mapping for it
2005-12-16 10:00:02 -08:00
Robey Pointer a14384370c [project @ robey@lag.net-20051216175905-c3477e2ec74db4d9]
add setuptools/easy_setup support
2005-12-16 09:59:05 -08:00
Robey Pointer 995343439a [project @ robey@lag.net-20051204092822-69155fa5abbc4637]
bump version to 1.5.2
2005-12-04 01:28:22 -08:00
Robey Pointer a8abbbecb8 [project @ robey@lag.net-20051204090414-7c8318ab735f6188]
experimental util functions for parsing/getting openssh host config, and unit tests (turned out to be pretty easy)
2005-12-04 01:04:14 -08:00
Robey Pointer 373e65dd97 [project @ robey@lag.net-20051204090235-431d6d71cee11f68]
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. :)
2005-12-04 01:02:35 -08:00
Robey Pointer 72e28736e2 [project @ robey@ralph.lag.net-20051204045002-f1d13a4bc1351090]
remove pre-1.0 news, bzr will preserve it for future archivists ;)
2005-12-03 20:50:02 -08:00
Robey Pointer 65beaef76f [project @ robey@ralph.lag.net-20051204044921-ae847bf450372ff5]
add comments to demo and demo_simple explaining that they don't work on windows
2005-12-03 20:49:21 -08:00
Robey Pointer 93ee12a194 [project @ robey@ralph.lag.net-20051204043258-3d82f58e781edf13]
add unit test for compression
2005-12-03 20:32:58 -08:00
Robey Pointer fdf927cffd [project @ robey@ralph.lag.net-20051204043251-efc5e0b9adee5403]
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
2005-12-03 20:32:51 -08:00
Robey Pointer 8aa2131e28 [project @ robey@ralph.lag.net-20051204042920-132f9184b775ffb1]
fix typo in doc
2005-12-03 20:29:20 -08:00
Robey Pointer 2de86653c7 [project @ robey@ralph.lag.net-20051204042853-ba804918019cbdba]
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
2005-12-03 20:28:53 -08:00
Robey Pointer 9b5d80869c [project @ robey@ralph.lag.net-20051203043919-0a8c4665d04853fc]
turn down output for unit tests by default, but add --verbose option to manually crank them back up
2005-12-02 20:39:19 -08:00
Robey Pointer a6b4875286 [project @ robey@ralph.lag.net-20051203043223-8ee54573dcda1386]
new unit test for doing a bunch of prefetches at once
2005-12-02 20:32:23 -08:00
Robey Pointer a8778ffe6f [project @ robey@ralph.lag.net-20051203043206-1a5ab28112642246]
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)
2005-12-02 20:32:06 -08:00
Robey Pointer 62a83e7d03 [project @ robey@ralph.lag.net-20051203043112-0091aa8e40980487]
serialize outgoing requests (duh) -- when prefetching multiple files, there may be several threads pumping out read requests
2005-12-02 20:31:12 -08:00
Robey Pointer 2d06308fd9 [project @ robey@ralph.lag.net-20051203042147-7e7a922aadc37bc2]
only create the log filter once, so it doesn't get applied more than once (tiny thing that bothered me during debugging)
2005-12-02 20:21:47 -08:00
Robey Pointer 35b5719dc2 [project @ robey@lag.net-20051203003250-030b7c160f13aca9]
oops, forgot to add this file -- guess friday really is hawaiian shirt day :)
2005-12-02 16:32:50 -08:00
Robey Pointer 568ddd963d [project @ robey@lag.net-20051202211544-900e02e2693d4a92]
add tentative compression support (off by default)
2005-12-02 13:15:44 -08:00
Robey Pointer e7a45fee60 [project @ robey@lag.net-20051202204242-1fb4a6438ba50969]
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.
2005-12-02 12:42:42 -08:00
Robey Pointer ee8a4e4b2b [project @ robey@lag.net-20051202120305-73accda404b89d27]
dumb test to verify utf8 encoding
2005-12-02 04:03:05 -08:00
Robey Pointer 76eafefcea [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-82]
convert_status is already called.  calling it again was breaking van dyke sftp servers, which add garbage to the end of their sftp packets
2005-11-25 19:09:59 +00:00
Robey Pointer ba6165a4aa [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-81]
copy from jaramiko: only check for rekey at the beginning of a packet
2005-11-12 01:38:27 +00:00
Robey Pointer 6de6dc72c6 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-80]
add 'x' flag to open to allow O_EXCL behavior
2005-11-12 01:10:41 +00:00
Robey Pointer 7e95e2afc8 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-79]
in Transport.__del__, don't try to clean up attributes that were never created
2005-11-11 17:43:01 +00:00
Robey Pointer 42867ded42 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-78]
oops, this file wasn't saved yet when i did the randpool.stir() commit
2005-10-31 19:09:46 +00:00
Robey Pointer b9106e4f21 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-77]
bump up version to 1.5.1
2005-10-31 03:28:54 +00:00
Robey Pointer b1d58c5ceb [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-76]
add a few more randpool.stir() calls
2005-10-31 03:27:13 +00:00
Robey Pointer 25d55e6089 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-75]
fix a few windows bugs (and broken str() on SFTPAttributes) reported by grzegorz makarewicz
2005-10-31 03:26:10 +00:00
Robey Pointer e57c4baab5 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-74]
raise the max packet size so that the max sftp packet will fit
2005-10-30 21:13:36 +00:00
Robey Pointer a355cf43d9 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-73]
packet read sizes were overestimated by 1 byte
2005-10-29 20:57:43 +00:00
Robey Pointer 66919286b6 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-72]
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
2005-10-29 20:47:04 +00:00
Robey Pointer 3c67e35b5f [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-71]
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
2005-10-29 20:41:14 +00:00
Robey Pointer f65edffbfb [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-70]
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
2005-10-24 06:19:56 +00:00
Robey Pointer c986f92dc5 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-69]
i think seek_cur had a bug here
2005-10-22 06:38:43 +00:00
Robey Pointer d42d6af12b [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-68]
set errno for some errors
2005-10-22 06:35:57 +00:00
Robey Pointer 95bf2b0957 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-67]
oops, dont forget to export SFTPFile for docs :)
2005-10-20 04:42:10 +00:00