1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

Fix ending in vmess reader.

This commit is contained in:
v2ray
2016-05-05 00:24:18 +02:00
parent a7f61af79b
commit 0bc846f016
3 changed files with 14 additions and 9 deletions

View File

@@ -129,6 +129,8 @@ func (this *DokodemoDoor) HandleTCPConnection(conn *hub.Connection) {
outputFinish.Lock()
reader := v2net.NewTimeOutReader(this.config.Timeout, conn)
defer reader.Release()
go func() {
v2reader := v2io.NewAdaptiveReader(reader)
defer v2reader.Release()
@@ -147,4 +149,5 @@ func (this *DokodemoDoor) HandleTCPConnection(conn *hub.Connection) {
}()
outputFinish.Lock()
inputFinish.Lock()
}