mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-18 23:00:12 +00:00
releasble user validator
This commit is contained in:
1 parent
c044234e4a
commit
7db14dad9b
4 files changed
+70
-6
No files matched your search
@@ -30,6 +30,15 @@ func NewServerSession(validator protocol.UserValidator) *ServerSession {
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ServerSession) Release() {
|
||||
this.userValidator = nil
|
||||
this.requestBodyIV = nil
|
||||
this.requestBodyKey = nil
|
||||
this.responseBodyIV = nil
|
||||
this.responseBodyKey = nil
|
||||
this.responseWriter = nil
|
||||
}
|
||||
|
||||
func (this *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.RequestHeader, error) {
|
||||
buffer := alloc.NewSmallBuffer()
|
||||
defer buffer.Release()
|
||||
|
||||
Reference in new issue
Block a user