We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8661e6 commit 15e14a0Copy full SHA for 15e14a0
sshd/ratelimit.go
@@ -44,8 +44,8 @@ type inputLimiter struct {
44
func NewInputLimiter() rateio.Limiter {
45
grace := time.Second * 3
46
return &inputLimiter{
47
- Amount: 200 * 4 * 2, // Assume fairly high typing rate + margin for copypasta of links.
48
- Frequency: time.Minute * 2,
+ Amount: 200 * 4 * 5, // Assume fairly high typing rate + margin for copypasta of links + large key handshakes
+ Frequency: time.Minute * 1,
49
readCap: 128, // Allow up to 128 bytes per read (anecdotally, 1 character = 52 bytes over ssh)
50
numRead: -1024 * 1024, // Start with a 1mb grace
51
timeRead: time.Now().Add(grace),
0 commit comments