Skip to content

race condition(s) around adding/deleting sessions #4

@adamdecaf

Description

@adamdecaf

Hey!

I was looking at this project, but noticed there might be some race conditions if your sqlitestore is used by multiple goroutines. Have you done so?

https://github.com/michaeljs1990/sqlitestore/blob/master/sqlitestore.go#L187-L189
https://github.com/gorilla/sessions/blob/master/sessions.go#L37

Those delete(.., ..) calls look to interact directly with a map[interface{}]interface{} without any locking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions