Skip to content

Session在Redis存储模式下不支持MaxActive、MaxIdle等参数设置,默认设置在并发场景下导致Session读取为空 #236

Description

@mstmdev

Session在Redis存储模式下不支持自定义MaxActive、MaxIdle等参数设置,
默认MaxIdle=5,MaxActive=20,-->newPool函数,导致并发场景下Redis连接池耗尽,从而ctx.Session().Get("key"),获取有概率为nil,-->GetSessionState函数

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions