mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
check error for the first payload
This commit is contained in:
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
Block a user