Robey Pointer
758c18a28b
[project @ robey@lag.net-20071029030520-ozmne7y4l6037m8h]
...
bug discovered while porting to jaramiko: old-style gex wasn't creating
the proper hash. fixed.
2007-10-28 20:05:20 -07:00
Robey Pointer
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.
2007-10-28 20:03:44 -07:00
Robey Pointer
80b9e289ce
[project @ robey@lag.net-20070924062534-5yemkpyjy2sssvjn]
...
bug 137219: handle EINTR in a read or write, if python doesn't.
2007-09-23 23:25:34 -07:00
Robey Pointer
2cf5448d43
[project @ robey@lag.net-20070901031348-6x0zif4cdtqu4vvu]
...
jon slavin points out that using the 'cmp' keyword is not compatible
with python 2.3.
2007-08-31 20:13:48 -07:00
Robey Pointer
39b45b4000
[project @ robey@lag.net-20070611044506-2c1c1t2avdr3yuaa]
...
bump up to 1.7.1 (amy)
2007-06-10 21:45:06 -07:00
Robey Pointer
7431c59c20
[project @ robey@lag.net-20070611044447-ewcm7qcrmtdfyspq]
...
change README to rest format
2007-06-10 21:44:47 -07:00
Robey Pointer
77c69301f4
[project @ robey@lag.net-20070611043523-ol2r0nbenkjc7abb]
...
create new TODO file
2007-06-10 21:35:23 -07:00
Robey Pointer
7c7880f368
[project @ robey@lag.net-20070611041319-llhshb80tvjvlhah]
...
move the news entries to a new rest file
2007-06-10 21:13:19 -07:00
Robey Pointer
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.
2007-05-20 19:35:45 -07:00
Robey Pointer
58e26ae41b
[project @ robey@lag.net-20070521002334-6bx5g0zrnb10sgyd]
...
add optional timeout parameter to SSHClient.connect(), based on a patch
from james bardin.
2007-05-20 17:23:34 -07:00
Robey Pointer
afa5e0594e
[project @ robey@lag.net-20070520225704-j1czjtrl2hu7t1pj]
...
add a get_channel() method to SFTPClient, to retrieve the underlying channel.
2007-05-20 15:57:04 -07:00
Robey Pointer
3229cd0f94
[project @ robey@lag.net-20070520225622-ozs9cguu8ipaxt85]
...
patch from wesley augur: expose the 'longname' field from listdir_attr().
2007-05-20 15:56:22 -07:00
Robey Pointer
920b172360
[project @ robey@lag.net-20070326075819-y7972z9cy3ffmw76]
...
expose PKey for documentation, so inherited methods can be seen in DSSKey and RSAKey
2007-03-26 00:58:19 -07:00
Robey Pointer
6b71c642d1
[project @ robey@lag.net-20070218212332-ufb5mk2ne0bzamx5]
...
oops, fix doc typo
2007-02-18 13:23:32 -08:00
Robey Pointer
cb0e01dd86
[project @ robey@lag.net-20070218212228-qdk8w1n4is0cady3]
...
bump version to 1.7 zubat
2007-02-18 13:22:28 -08:00
Robey Pointer
87d97fa209
[project @ robey@lag.net-20070213192109-axy7gl61x7w0cpbp]
...
add get/put to the sftp demo
2007-02-13 11:21:09 -08:00
Robey Pointer
83b335e10f
[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]
...
bump copyright year to 2007
2007-02-13 11:17:06 -08:00
Robey Pointer
1a51090969
[project @ robey@lag.net-20070212183050-kaf5lvrbw46v9i59]
...
improve x11 test and add a test for reverse port forwarding
2007-02-12 10:30:50 -08:00
Robey Pointer
b9f43f3f06
[project @ robey@lag.net-20070212183021-0c9dx3w16m0x2non]
...
add a convenience method for open_forwarded_tcpip_channel
2007-02-12 10:30:21 -08:00
Robey Pointer
ab2e5a710e
[project @ robey@lag.net-20070212182955-eaqi0dhzk0p8tw02]
...
slightly improve docs; mention check_channel_x11_request
2007-02-12 10:29:55 -08:00
Robey Pointer
44af093090
[project @ robey@lag.net-20070211022613-tvtcqzmho5cxr55u]
...
fix a couple of typos discovered by mczepiel.
2007-02-10 18:26:13 -08:00
Robey Pointer
ecb8ffe373
[project @ robey@lag.net-20070211022553-mjbl0w7wygpl7os5]
...
add another test to check out private key auth.
2007-02-10 18:25:53 -08:00
Robey Pointer
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.
2007-02-10 15:58:28 -08:00
Robey Pointer
21a42f5f33
[project @ robey@lag.net-20070122211718-02rz92vb9626vur4]
...
an errant slash was making unit tests unrunnable on windows
2007-01-22 13:17:18 -08:00
Robey Pointer
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.
2006-12-27 16:40:16 -05:00
Robey Pointer
c570f1a35a
[project @ robey@lag.net-20061227194121-hzrmwbb6ea14unkg]
...
once, this test failed, so add a timer
2006-12-27 14:41:21 -05:00
Robey Pointer
0a63d74a69
[project @ robey@lag.net-20061227194104-ztyb6hi94wp9egp2]
...
fix bug in prefetch confirmation
2006-12-27 14:41:04 -05:00
Robey Pointer
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.)
2006-12-25 20:27:48 -05:00
Robey Pointer
bc66f5eed2
[project @ robey@lag.net-20061226012631-dlhl2akelqy8z0v8]
...
remove silly comment about compression not being tested
2006-12-25 20:26:31 -05:00
Robey Pointer
5a30821a7d
[project @ robey@lag.net-20061217011840-wndj9dyd2f9g512e]
...
don't need to expanduser twice
2006-12-16 17:18:40 -08:00
Robey Pointer
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.
2006-12-15 14:21:08 -08:00
Robey Pointer
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.
2006-12-15 13:19:36 -08:00
Robey Pointer
76285309cf
[project @ robey@lag.net-20061203023334-72zo500ys0l1le30]
...
potential port forwarding support; probably buggly cuz i haven't added unit tests yet :)
2006-12-02 18:33:34 -08:00
Robey Pointer
aaa97d72c0
[project @ robey@lag.net-20061127192023-ns5lhww0jc84f21t]
...
absorb socket.errors caused by a closed socket if we knew it was closed
2006-11-27 11:20:23 -08:00
Robey Pointer
fec76c51b1
[project @ robey@lag.net-20061121001117-8mf8zzltvfvzzrv7]
...
add support for opening x11 channels, and a unit test
2006-11-20 16:11:17 -08:00
Robey Pointer
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
2006-11-20 11:21:37 -08:00
Robey Pointer
b956cc4831
[project @ robey@lag.net-20061119205558-p5p2tmqx0xt7hq9r]
...
bump version to 1.6.4 (yanma) and trim the README changes-history a bit
2006-11-19 12:55:58 -08:00
Robey Pointer
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.
2006-11-12 20:17:42 -08:00
Robey Pointer
48afc3082a
[project @ robey@lag.net-20061112063054-bf71926ff8c98c68]
...
a bit of cleanup in close() to try harder to avoid having lingering threads
2006-11-11 22:30:54 -08:00
Robey Pointer
e2d8357622
[project @ robey@lag.net-20061112055617-098a150cf051bffa]
...
try a trick that should let 'hostkeys[hostname][keytype] = key' work for
HostKeys objects again.
2006-11-11 21:56:17 -08:00
Robey Pointer
bee3535484
[project @ robey@lag.net-20061111005330-08c517e2576693bd]
...
use python from env for unit tests
2006-11-10 16:53:30 -08:00
Robey Pointer
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.)
2006-11-10 16:44:13 -08:00
Robey Pointer
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.
2006-10-31 14:37:47 -08:00
Robey Pointer
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.
2006-10-31 11:06:17 -08:00
Robey Pointer
f076c51d4e
[project @ robey@lag.net-20061031185035-b57ad8184c39063a]
...
include setup_helper.py in the manifest
2006-10-31 10:50:35 -08:00
Robey Pointer
7e27adacf1
[project @ robey@lag.net-20061015015628-371a037b5165d634]
...
bump version to 1.6.3
2006-10-14 18:56:28 -07:00
Robey Pointer
f4199b5a28
[project @ robey@lag.net-20061015012126-36370734592aff17]
...
might as well assert this
2006-10-14 18:21:26 -07:00
Robey Pointer
4d090c71a6
[project @ robey@lag.net-20061008002032-d6803b57bac4f62c]
...
i think the compression needs to be inside this lock in order to preserve order
2006-10-07 17:20:32 -07:00
Robey Pointer
93ab477408
[project @ robey@lag.net-20061001034525-8f78a989ecde720c]
...
bug fix from mike looijmans: notify any thread waiting in accept() when the transport dies
2006-09-30 20:45:25 -07:00
Robey Pointer
64b89b6efd
[project @ robey@lag.net-20061001034455-bf6880fdbd4dd29e]
...
trivial doc fixes
2006-09-30 20:44:55 -07:00