Commit f49f3f92 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2533 from cnxh/redis-session-poolsize

redis poolsize could set to zero
parents b18b94f0 7c3a9977
......@@ -128,7 +128,7 @@ func (rp *Provider) SessionInit(maxlifetime int64, savePath string) error {
}
if len(configs) > 1 {
poolsize, err := strconv.Atoi(configs[1])
if err != nil || poolsize <= 0 {
if err != nil || poolsize < 0 {
rp.poolsize = MaxPoolSize
} else {
rp.poolsize = poolsize
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment