mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 03:55:26 -05:00
fix usage of ray stream.
This commit is contained in:
@@ -175,11 +175,11 @@ func (v *Server) handleConnection(conn internet.Connection) {
|
||||
User: request.User,
|
||||
Inbound: v.meta,
|
||||
})
|
||||
defer ray.InboundOutput().Release()
|
||||
defer ray.InboundOutput().ForceClose()
|
||||
defer ray.InboundInput().Close()
|
||||
|
||||
requestDone := signal.ExecuteAsync(func() error {
|
||||
defer ray.InboundOutput().Release()
|
||||
defer ray.InboundOutput().ForceClose()
|
||||
|
||||
bufferedWriter := bufio.NewWriter(conn)
|
||||
defer bufferedWriter.Release()
|
||||
|
||||
Reference in New Issue
Block a user