mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
still need this goroutine
This commit is contained in:
parent
f30841019d
commit
3f0f8f005d
@ -47,12 +47,15 @@ func (vconn *FreedomConnection) Start(ray core.OutboundRay) error {
|
|||||||
go dumpInput(conn, input, writeFinish)
|
go dumpInput(conn, input, writeFinish)
|
||||||
go dumpOutput(conn, output, readFinish)
|
go dumpOutput(conn, output, readFinish)
|
||||||
|
|
||||||
<-writeFinish
|
go func() {
|
||||||
if tcpConn, ok := conn.(*net.TCPConn); ok {
|
<-writeFinish
|
||||||
tcpConn.CloseWrite()
|
if tcpConn, ok := conn.(*net.TCPConn); ok {
|
||||||
}
|
tcpConn.CloseWrite()
|
||||||
<-readFinish
|
}
|
||||||
conn.Close()
|
<-readFinish
|
||||||
|
conn.Close()
|
||||||
|
}()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user