Commit Graph

1404 Commits

Author SHA1 Message Date
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
Robey Pointer 64d89583c7 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-66]
fix a test that failed once: the encoding of R or S in dss signatures might not always be exactly 20 bytes
2005-10-17 16:36:55 +00:00
Robey Pointer 6eab0b3b4d [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-65]
remove unnecessary shebangs, fix import lines to be explicit about imports from within paramiko, and a bit of whitespace cleanup
2005-10-13 18:52:59 +00:00
Robey Pointer 8bb5e65499 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-64]
track channels seen and throw away (without error) messages bound for nonexistent channels that *used* to exist -- fixes a bug found by gordon good
2005-10-13 18:51:18 +00:00
Robey Pointer 7f9677d5ab [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-63]
fix doc typo
2005-10-02 20:12:48 +00:00
Robey Pointer 65883e673b [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-62]
readme comments, bump version to 1.5 paras
2005-10-02 20:08:39 +00:00
Robey Pointer f2ec841a15 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-61]
add server-side support for keyboard-interactive auth, and a couple of unit tests
2005-09-27 04:03:27 +00:00
Robey Pointer fb73c0ef7f [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-60]
add file pipelining for writes
2005-09-25 09:11:23 +00:00
Robey Pointer 364479610e [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-59]
add auth_none and auth_interactive to support 'no auth' and 'keyboard-interactive auth'; for password auth, add a mode where it will try to fallback to keyboard-interactive in a pinch
2005-09-21 22:42:11 +00:00
Robey Pointer 24045332c5 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-58]
make the str form of BadAuthenticationType describe the allowed auth types
2005-09-21 22:37:23 +00:00
Robey Pointer 4862d5955b [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-57]
simplify a line of debug output in demo_simple that bothered me one day
2005-09-21 22:34:39 +00:00
Robey Pointer 112b72511e [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-56]
patch from nathaniel smith: fix SFTPClient.open() 'a' flag, and guard against multiple close() of the same file
2005-09-18 07:25:54 +00:00
Robey Pointer 01ca23cace [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-55]
fix the loading of known_hosts in the demos to work on winodws/cygwin
2005-08-17 15:54:29 +00:00
Robey Pointer 0f3bf86617 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-54]
smooth BaseTransport and Transport together, and move the auth stuff into AuthHandler -- an improvement i made in jaramiko and decided deserved to be backported
2005-08-09 07:40:07 +00:00
Robey Pointer 1fdec8bd06 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-53]
more todo...
2005-08-09 06:31:19 +00:00
Robey Pointer 646db7c787 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-52]
rework init so classes all appear in the right package in docs (yaaaay)
2005-08-09 06:30:59 +00:00
Robey Pointer 7cd7841556 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-51]
rename 3 globals so they're not exposed in docs
2005-08-09 06:30:22 +00:00
Robey Pointer a4fc5bb8a7 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-50]
add docs to Message
2005-08-09 06:29:59 +00:00
Robey Pointer 7b4cd51b76 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-49]
dumb tiny tweaks
2005-08-03 06:57:51 +00:00
Robey Pointer eb60811594 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-48]
can use up to 32k buffers here
2005-08-03 06:57:30 +00:00
Robey Pointer 5a5cd201b7 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-47]
bump version number to 1.4 oddish
2005-07-18 06:40:30 +00:00
Robey Pointer d8ee5e2a4a [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-46]
add SFTPFile.check and server support (and test) -- it's an sftp extension that allows a client to retrieve the hash of part or all of a file without downloading it.  we're probably the only ones who implement it yet
2005-07-18 05:43:44 +00:00
Robey Pointer e9ccd7ea20 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-45]
yeah! figured out the last things that were causing GC cycles and got rid of them: Channels, Transports, SFTPClients, and SFTPFiles can all have __del__ methods now, which auto-close themselves :)
2005-07-17 20:06:29 +00:00
Robey Pointer f27e625926 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-44]
try to handle utf8 paths in a sane way in SFTPClient: assume incoming strings are already utf8, and encode incoming unicodes -- for return values, use str if an ascii encoding will work, otherwise return a unicode
2005-07-17 07:01:51 +00:00
Robey Pointer a22719c338 [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-43]
allow start_client and start_server to be passed no event object for synchronous behavior
2005-07-16 16:41:39 +00:00