Commit Graph

340 Commits

Author SHA1 Message Date
Robey Pointer 581103665b [project @ robey@lag.net-20060504025237-a015ee747d9a2e75]
if open_channel fails, it now raises ChannelException.  added a unit test for that too.  renegotiate_keys will also raise an exception now instead of returning a bool.
2006-05-03 19:52:37 -07:00
Robey Pointer aac434e9b0 [project @ robey@lag.net-20060503163531-2297cd257acc51e5]
make a slightly different exception for the expected mode on cygwin (why would they add support for some but not all of the unix mode bits? very odd)
2006-05-03 09:35:31 -07:00
Robey Pointer 2067e9a136 [project @ robey@lag.net-20060502002709-617a268779f7ca6b]
readv should just yield results as it gets them (suggestion from robertc)
2006-05-01 17:27:09 -07:00
Robey Pointer 57bc6728af [project @ robey@lag.net-20060430024043-e4391438febc9bf2]
check for None channel and display error
2006-04-29 19:40:43 -07:00
Robey Pointer e646d0ee4c [project @ robey@lag.net-20060430023238-3cd706d10c2de472]
try to clean up if the server object throws an exception
2006-04-29 19:32:38 -07:00
Robey Pointer c278de9fd4 [project @ robey@lag.net-20060428174959-bae73f58ca8ed33a]
patch from nicholas piper to catch keepalives sent to the client
2006-04-28 10:49:59 -07:00
Robey Pointer 9819087210 [project @ robey@lag.net-20060428172401-ad8da020daedd941]
2 more unit test bugs found by alexander (can't change atime on win32)
2006-04-28 10:24:01 -07:00
Robey Pointer c05200dcc6 [project @ robey@lag.net-20060424011141-18957fe09447af6b]
more README
2006-04-23 18:11:41 -07:00
Robey Pointer 3bcdf46a9d [project @ robey@lag.net-20060424011126-66797c157af18805]
add SSHClient (so far)
2006-04-23 18:11:26 -07:00
Robey Pointer 8e81ba61f5 [project @ robey@lag.net-20060424011046-7edc8e67b364f07d]
mark a couple of functions as since 1.5.2
2006-04-23 18:10:46 -07:00
Robey Pointer 5c2c949b1e [project @ robey@lag.net-20060420072722-924a44953b8d9919]
tweak a test that relied too much on timing
2006-04-20 00:27:22 -07:00
Robey Pointer abb7f1f1ba [project @ robey@lag.net-20060420072627-958cad5e36cb8ecc]
fix a bug where prefetch() at EOF would throw an exception, and add a unit test
2006-04-20 00:26:27 -07:00
Robey Pointer d965f00563 [project @ robey@lag.net-20060412205753-e6c5d195a51fc389]
fix docs
2006-04-12 13:57:53 -07:00
Robey Pointer 6e2f3b6548 [project @ robey@lag.net-20060412203612-863c46529730f786]
bump up the default banner timeout to 15 seconds and make it configurable via (undocumented) Transport.banner_timeout
2006-04-12 13:36:12 -07:00
Robey Pointer 37dd98bc61 [project @ robey@lag.net-20060412093740-9fad67f9fbafcd7d]
fix doc typo
2006-04-12 02:37:40 -07:00
Robey Pointer f765980313 [project @ robey@lag.net-20060412084327-0d666ca96c0b0976]
oops, don't forget to add the empty() method
2006-04-12 01:43:27 -07:00
Robey Pointer e7afd83308 [project @ robey@lag.net-20060412084250-bd347f3f01aca394]
flip the switch: use BufferedPipe inside Channel
2006-04-12 01:42:50 -07:00
Robey Pointer 22db02c82f [project @ robey@lag.net-20060411224806-2683ac099f9608ae]
add a test that feed/read can happen piecemeal
2006-04-11 15:48:06 -07:00
Robey Pointer b7a615d02a [project @ robey@lag.net-20060411224733-0361ad3758aee64d]
add a way to set the event to trigger, and fix a typo
2006-04-11 15:47:33 -07:00
Robey Pointer 1df0e7e629 [project @ robey@lag.net-20060411074019-1c4ec3497399bf11]
oops, don't forget BufferedPipe unit tests
2006-04-11 00:40:19 -07:00
Robey Pointer 9e14a3bf58 [project @ robey@lag.net-20060411073946-8830b560b276266f]
factor out BufferedPipe into its own class
2006-04-11 00:39:46 -07:00
Robey Pointer 017d315bce [project @ robey@lag.net-20060409073938-bcbb9a13a6f311c2]
changes to win_pageant from todd whiteman which avoid using ctypes and apparently makes the pageant agent work
2006-04-09 00:39:38 -07:00
Robey Pointer 8087fa5a29 [project @ robey@lag.net-20060408222456-d3813e0206a2cda7]
assertTrue doesn't exist in py23
2006-04-08 15:24:56 -07:00
Robey Pointer ccc1046a5c [project @ robey@lag.net-20060406181821-68f9bc13b3580d37]
some fixes for win32: potential fix for lockup during failed tests; don't try chmod/chown or symlinks; fix canonicalize to convert dos-style path separators to '/'; open local files in binary mode; close a file before erasing it
2006-04-06 11:18:21 -07:00
Robey Pointer d7b28ac257 [project @ robey@lag.net-20060327001936-9dd7d3b155614bbf]
allow multiple prefetches to happen in rapid succession
2006-03-26 16:19:36 -08:00
Robey Pointer 0cee90eeca [project @ robey@lag.net-20060327001726-7ccb095fd5c416f5]
roll in some changes from bzr that may be necessary to get stub_sftp to work on windows
2006-03-26 16:17:26 -08:00
Robey Pointer 4120a15823 [project @ robey@lag.net-20060326235536-31da9988fb7a06be]
slightly more docs to hostkeys
2006-03-26 15:55:36 -08:00
Robey Pointer b12d10fd72 [project @ robey@lag.net-20060326204635-1c5418c54187b95d]
fix exception-catching error found by alexander belchenko
2006-03-26 12:46:35 -08:00
Robey Pointer 016060388a [project @ robey@lag.net-20060324174423-1d310608680dd29b]
try out john's win_pageant code
2006-03-24 09:44:23 -08:00
Robey Pointer 62c9588365 [project @ robey@lag.net-20060312043043-a96ec6e03210f476]
fix Makefile :)
2006-03-11 20:30:43 -08:00
Robey Pointer 4eb0b9ac3e [project @ robey@lag.net-20060312042905-752c324bdc1ac2cf]
bump version to 1.5.4
2006-03-11 20:29:05 -08:00
Robey Pointer 82d8ca6e11 [project @ robey@lag.net-20060312040732-8d16f6c42f12f138]
document readv, fix thinko, and add a readv unit test
2006-03-11 20:07:32 -08:00
Robey Pointer ece62093bd [project @ robey@lag.net-20060312040633-92b1c78bf815905d]
add test to verify that 'for x in hostkeys' works
2006-03-11 20:06:33 -08:00
Robey Pointer 862e1f48e3 [project @ robey@lag.net-20060310022234-c183ad0b3f31eb28]
generalize the prefetching a bit so that it can be reused for a readv method
2006-03-09 18:22:34 -08:00
Robey Pointer a98c5cf627 [project @ robey@lag.net-20060309082830-ea89d2b2259098a2]
revise the prefetch machinery so that it doesn't assert if you seek to earlier than the prefetched buffers.  also, keep around any prefetched data that has been seeked around, so that jumping around in the file will still get the benefit of prefetch, though only the first time any chunk is read.
2006-03-09 00:28:30 -08:00
Robey Pointer bbcf7687aa [project @ robey@lag.net-20060309082217-438047d0007d5a5b]
reads were being rounded up to an 8k buffer size, even with no buffering specified when the file was opened.  i traced this back to the old ChannelFile where it worked correctly.  fix to only buffer when asked to.
2006-03-09 00:22:17 -08:00
Robey Pointer 284614a857 [project @ robey@lag.net-20060309081619-4ec529d524744e14]
fix up the manifest
2006-03-09 00:16:19 -08:00
Robey Pointer 89e39a4559 [project @ robey@lag.net-20060309081455-84be2ae54f98e897]
move sftp big-file tests into a separate class and add one that does a prefetch, then seeks in random order
2006-03-09 00:14:55 -08:00
Robey Pointer de6315b9c5 [project @ robey@lag.net-20060309080450-bad95b03d60d3d4f]
improve HostKeys so that it more correctly emulates a dict, and add a unit test to verify that
2006-03-09 00:04:50 -08:00
Robey Pointer 90a577c775 [project @ robey@lag.net-20060228030121-67362d86a18a352b]
heh, this import will always fail unless we have 'os' handy
2006-02-27 19:01:21 -08:00
Robey Pointer 860edff9f4 [project @ robey@lag.net-20060228030048-ca579e8c53c9c4b7]
this demo doesn't need to import interactive
2006-02-27 19:00:48 -08:00
Robey Pointer 5b7957ce39 [project @ robey@lag.net-20060220072303-cdc3bc647d5732b0]
bump version to 1.5.3
2006-02-19 23:23:03 -08:00
Robey Pointer 2103553ff5 [project @ robey@lag.net-20060220040447-d7b79989d3b680ed]
remove @since that predate 1.0
2006-02-19 20:04:47 -08:00
Robey Pointer 6459365f50 [project @ robey@lag.net-20060220040343-f13904d9c97035e3]
explain why paths aren't, and can't be, unicode strings when passed to SFTPServerInterface
2006-02-19 20:03:43 -08:00
Robey Pointer 4be91d1c4d [project @ robey@lag.net-20060220031741-3227438ff1b03a29]
add SFTPClient.truncate.  add chmod, chown, utime, and truncate to SFTPFile.  and of course tests.
2006-02-19 19:17:41 -08:00
Robey Pointer 8446c0bda1 [project @ robey@lag.net-20060220005934-58d0df2920e799b5]
update copyright year
2006-02-19 16:59:34 -08:00
Robey Pointer 409c4fc482 [project @ robey@lag.net-20060220003513-aa54e3e771a530fd]
add HostKeys, a helper for reading/parsing openssh known_hosts files, including hashed-host support
2006-02-19 16:35:13 -08:00
Robey Pointer 08c9efc86a [project @ robey@lag.net-20060213181724-ba80fa329c5be7f4]
not all sftp servers obey the 'all filenames are utf8' requirement, so if both ascii and utf8 codecs fail, just return the filename as a byte string
2006-02-13 10:17:24 -08:00
Robey Pointer 97496845bb [project @ robey@master-shake.local-20060210175613-e7a1fccdcc4e689c]
this del is also useless
2006-02-10 09:56:13 -08:00
Robey Pointer 12efdd7ca1 [project @ robey@master-shake.local-20060209073516-77f30d55aee054ea]
packetizer doesn't need a __del__, and the keepalive should use a weakref
2006-02-08 23:35:16 -08:00