mirror of
https://github.com/moul/sshportal.git
synced 2025-03-13 00:05:13 +08:00
Fix connection failure when sending too many environment variables (fix #22)
*Temporary fix* A better solution requires a refactor of the ssh session handler (related with #24) Related with this comment: https://github.com/gliderlabs/ssh/issues/47#issuecomment-340550104
This commit is contained in:
parent
c8fb103762
commit
fb15225c35
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
2
vendor/github.com/gliderlabs/ssh/session.go
generated
vendored
2
vendor/github.com/gliderlabs/ssh/session.go
generated
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue