mirror of https://github.com/v2ray/v2ray-core
check error for the first payload
parent
06a73adb1e
commit
f2fcc90de2
|
@ -187,8 +187,14 @@ func (v *Server) handleConnection(conn internet.Connection) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
responseWriter.Write(payload)
|
||||
bufferedWriter.SetBuffered(false)
|
||||
if err := responseWriter.Write(payload); err != nil {
|
||||
return err
|
||||
}
|
||||
payload.Release()
|
||||
|
||||
if err := bufferedWriter.SetBuffered(false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := buf.PipeUntilEOF(ray.InboundOutput(), responseWriter); err != nil {
|
||||
log.Info("Shadowsocks|Server: Failed to transport all TCP response: ", err)
|
||||
|
|
Loading…
Reference in New Issue