connection pool: ssh can't work when pool_count is set, fix #193

This commit is contained in:
fatedier
2016-12-26 01:55:54 +08:00
parent 4c3fb22295
commit 9faf4acd62
3 changed files with 69 additions and 19 deletions

View File

@@ -384,6 +384,7 @@ func (p *ProxyServer) getWorkConn() (workConn *conn.Conn, err error) {
err = fmt.Errorf("ProxyName [%s], no work connections available, control is closing", p.Name)
return
}
log.Debug("ProxyName [%s], get work connection from pool", p.Name)
default:
// no work connections available in the poll, send message to frpc to get more
p.ctlMsgChan <- 1