Bobby Impollonia
ae3ecbe548
Remove comparison between int and str
...
The code had been doing 'n < self.__in_buffer' when it
wanted to be doing 'n < len(self.__in_buffer)'
In Python 2.x, this comparison (int < str) is always True.
I found this while porting to Python 3 where it raises
an error.
The code has been working without complaints because always
taking the true branch of this conditional is actually fine.
We don't need the false branch, so drop the check entirely.
(cherry picked from commit 0a013f829e
)
2012-09-23 16:18:57 -07:00
Bobby Impollonia
bd5c843040
Replace hard tabs with spaces
...
(cherry picked from commit c07eddb9e1
)
2012-09-23 16:18:56 -07:00
Jeff Forcier
a05b770c03
Also as well? Y U NO ENGLISH GOOD
...
(cherry picked from commit ece1a825e8
)
2012-09-23 16:18:55 -07:00
Jeff Forcier
d804a303a7
Language tweak
...
(cherry picked from commit 94ea149145
)
2012-09-23 16:18:52 -07:00
Jeff Forcier
e41ab9194a
First draft of modern explanatory README
...
(cherry picked from commit 4f7338bbfc
)
2012-09-23 16:18:26 -07:00
Silas Sewell
e375d671a4
Fix FSF address
...
(cherry picked from commit 4db2ca594b
)
CHANGED: only applied the address change to LICENSE and setup.py.
Rest left untouched. :effort:
2012-09-23 16:16:57 -07:00
Jeff Forcier
11ca8134a2
Cut 1.7.13
...
(cherry picked from commit 998377f353
)
Conflicts:
setup.py
2012-09-23 16:11:18 -07:00
Jeff Forcier
9c5791edb8
Fixes #4 , thanks again to @jaraco
...
(cherry picked from commit b59430efef
)
2012-09-23 16:10:52 -07:00
Jeff Forcier
9b2f36fc1f
Whitespace tweaks, thanks @jaraco
...
(cherry picked from commit 3b20efcc14
)
2012-09-23 16:10:50 -07:00
Jeff Forcier
1882f3470b
Move fcntl import to avoid high level ImportErrors on Windows
...
Fixes #5 .
(cherry picked from commit ec2aedac71
)
2012-09-23 16:10:42 -07:00
Jeff Forcier
c3e9b76d51
Clean up Makefile, ensure release is useful again
...
(cherry picked from commit 3e4632979f
)
Conflicts:
Makefile
2012-09-23 16:10:26 -07:00
Jeff Forcier
ac7f513ee8
Release 1.7.12
...
(cherry picked from commit c630917d0d
)
Conflicts:
paramiko/__init__.py
setup.py
2012-09-23 16:09:44 -07:00
Jeff Forcier
2519e541b1
Changelog entry for io_sleep change
...
(cherry picked from commit cbd9c4a76e
)
2012-09-23 16:09:06 -07:00
Jeff Forcier
8208812ae6
Changelog entry for 1.7.11 (internal only though)
...
(cherry picked from commit 5ce70f3cb0
)
2012-09-23 16:09:03 -07:00
Jeff Forcier
0916fbe292
Forgot to re-add import, derp
...
(cherry picked from commit 474ace1ca4
)
2012-09-23 16:08:39 -07:00
Jeff Forcier
3d598a64b4
Add IO sleep to agent forward communications.
...
Without this, use of agent forwarding causes
high CPU usage on some clients.
(cherry picked from commit 3030589aaa
)
Conflicts:
paramiko/agent.py
2012-09-23 16:08:35 -07:00
Jeff Forcier
c903245ed9
Trying something stupid re: ==dev
...
(cherry picked from commit 543651bfd2
)
Conflicts:
setup.py
2012-09-23 16:07:40 -07:00
Jeff Forcier
d3b48e9b44
Bump to 1.7.11
...
(cherry picked from commit 9234baed01
)
Conflicts:
paramiko/__init__.py
setup.py
2012-09-23 16:07:03 -07:00
Jeff Forcier
10beb86e9e
Partially revert centralized version stuff
...
(cherry picked from commit d9ba7a644c
)
Conflicts:
setup.py
2012-09-23 16:05:00 -07:00
Jeff Forcier
013d459487
Goofed up the RST
...
(cherry picked from commit 175075e045
)
2012-09-23 16:04:10 -07:00
Jeff Forcier
253a22a770
add ==dev install URL to setup.py
...
(cherry picked from commit 48c21beac9
)
2012-09-23 16:04:06 -07:00
Jeff Forcier
903646677b
Bump dev version
...
(cherry picked from commit 59cae8560b
)
2012-09-23 16:03:58 -07:00
Jeff Forcier
7b7b23572b
Let's not have 5 different freakin version strings
...
Also bumps to 1.7.10
(cherry picked from commit 01eea3326a
)
Conflicts:
README
paramiko/__init__.py
paramiko/transport.py
setup.py
2012-09-23 16:03:38 -07:00
Jeff Forcier
4d4780abaa
Going to release 1.7.10 for ==dev
...
(cherry picked from commit bd3a64fac2
)
2012-09-23 15:58:38 -07:00
Jeff Forcier
3cf76a85c4
Add post-Paramiko changelog file for now
...
(cherry picked from commit 08ff651d0f
)
Conflicts:
CHANGES
2012-09-23 15:58:27 -07:00
Jeff Forcier
8510adcc96
Going to release 1.7.10 for ==dev
...
(cherry picked from commit 95e464b238
)
2012-09-23 15:56:43 -07:00
Jeff Forcier
096d73e567
Add post-Paramiko changelog file for now
...
(cherry picked from commit 3e41abb6be
)
2012-09-23 15:56:33 -07:00
Jeff Forcier
5f839942c7
add ==dev install URL to setup.py
...
(cherry picked from commit e72b53788d
)
2012-09-23 15:56:08 -07:00
Jeff Forcier
ba4dc2a26b
Don't mix tabs and spaces
...
(cherry picked from commit 8c8d0a81ad
)
2012-09-23 15:56:06 -07:00
Jeff Forcier
a84bd27bfd
Use new-style classes, 2001 was 10 years ago
...
(cherry picked from commit 85d0d97715
)
2012-09-23 15:55:59 -07:00
Jeff Forcier
212276af13
Port poll-using code to use select() instead.
...
(cherry picked from commit eb49bf4870
)
2012-09-23 15:55:46 -07:00
Ben Davis
c46fddeb16
Added ssh agent support. Ported from https://github.com/robey/paramiko/pull/21
...
(cherry picked from commit 35a173631f
)
Conflicts:
paramiko/agent.py
2012-09-23 15:55:38 -07:00
Jeff Forcier
a94f73a392
Bump to 1.7.9, setup.py/crypto update
...
(cherry picked from commit ea8e73a389
)
Conflicts:
setup.py
2012-09-23 14:37:44 -07:00
Jeff Forcier
987de8e7d5
Crypto released a setuptools bugfix as 2.4.1.
...
(cherry picked from commit 2279ef6909
)
2012-09-23 14:36:56 -07:00
Jeff Forcier
96d8eafc47
Crypto 2.4 doesn't play well with setup.py/setuptools
...
(cherry picked from commit 12cf1674fc
)
2012-09-23 14:36:36 -07:00
Jeff Forcier
18612b7caa
Take ownership of TODO file
2012-09-23 14:34:40 -07:00
Jeff Forcier
99859b8b02
Update version to 1.7.8, no need for 4 parts
...
(cherry picked from commit 5e0a329028
)
Conflicts:
README
paramiko/__init__.py
setup.py
2012-09-23 14:28:34 -07:00
Jeff Forcier
13e65a2ce0
Tweak setup.py to match README
...
(cherry picked from commit 673c427fe6
)
Conflicts:
setup.py
2012-09-23 14:24:27 -07:00
Jeff Forcier
f8239015ec
Add additional Random.atfork() to prevent RNG errors in large runs
...
Conflicts:
paramiko/transport.py
Was: ssh 41f4566
2012-09-23 14:21:22 -07:00
Jeff Forcier
72ee77f441
Update README copyright notice (was ssh a228ab41
)
2012-09-23 14:19:15 -07:00
Jeff Forcier
8f9b37add4
Initial port of 3709d2e02bf67ccc272e1f2311e5db125a922ba0 from 'ssh'
...
Re #17
2012-09-13 19:28:07 -07:00
Jeff Forcier
edddc61fb5
Fix trailing whitespace re #28
2012-07-04 20:43:49 -07:00
Jeff Forcier
6ae99df2d5
Add changelog entry re #28
2012-07-04 20:43:00 -07:00
Sofian Brabez
a991b5d151
document demo_keygen.py file in readme
2012-07-04 20:37:11 -07:00
Sofian Brabez
a97b8b6da9
add priv/pub key generator demo
2012-07-04 20:37:06 -07:00
Jeff Forcier
3d08be043c
Update changelog with #63 attribution
2012-05-25 21:58:38 -07:00
Jeff Forcier
c4f873549a
Merge pull request #63 from dlitz/issue49-rekeying-fix
...
Fix SSHException when re-keying over a fast connection
2012-05-25 21:58:07 -07:00
Jeff Forcier
322819454d
Increment version for release
2012-05-16 16:03:10 -07:00
Jeff Forcier
a6358f8d13
Merge #63
2012-05-16 15:51:27 -07:00
Dwayne C. Litzenberger
c51b3b208c
Fix SSHException when re-keying over a fast connection
...
When Paramiko initiates a re-key request over a high-bandwidth, medium-latency
connection, it erroneously terminates the connection with the error,
"SSHException: Remote transport is ignoring rekey requests". This is due to
the hard-coded limit of 20 packets that may be received after a re-key request
has been sent.
See, for example, this bug report:
"Transfer fails at 1GB: rekey window too small, hard-coded"
https://github.com/paramiko/paramiko/issues/49
This patch changes paramiko's behaviour as follows:
- Decrease the threshold for starting re-keying from 2**30 to 2**29 bytes.
- Decrease the threshold for starting re-keying from 2**30 to 2**29 packets.
- Increase the limit of received packets between re-key request & completion
from 20 packets to 2**29 packets.
- Add a limit of 2**29 received bytes between re-key request & completion.
In other words, we re-key more often in order to allow more data to be
in-transit during re-keying.
NOTE: It looks like Paramiko disables the keep-alive mechanism during
re-keying. This patch does not change that behaviour.
2012-03-24 11:28:41 -04:00