Merge pull request #26 from moul/dev/moul/fix-22

Fix connection failure when sending too many environment variables
This commit is contained in:
Manfred Touron 2017-12-28 23:29:41 +01:00 committed by GitHub
commit 78db26a532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
## master (unreleased)
* Fix connection failure when sending too many environment variables (fix [#22](https://github.com/moul/sshportal/issues/22))
* Fix panic when entering empty command (fix [#13](https://github.com/moul/sshportal/issues/13))
## v1.6.0 (2017-12-12)

View file

@ -90,7 +90,7 @@ func sessionHandler(srv *Server, conn *gossh.ServerConn, newChan gossh.NewChanne
conn: conn,
handler: srv.Handler,
ptyCb: srv.PtyCallback,
maskedReqs: make(chan *gossh.Request, 5),
maskedReqs: make(chan *gossh.Request, 100),
ctx: ctx,
}
sess.handleRequests(reqs)