mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 14:57:44 -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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
responseWriter.Write(payload)
|
if err := responseWriter.Write(payload); err != nil {
|
||||||
bufferedWriter.SetBuffered(false)
|
return err
|
||||||
|
}
|
||||||
|
payload.Release()
|
||||||
|
|
||||||
|
if err := bufferedWriter.SetBuffered(false); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if err := buf.PipeUntilEOF(ray.InboundOutput(), responseWriter); err != nil {
|
if err := buf.PipeUntilEOF(ray.InboundOutput(), responseWriter); err != nil {
|
||||||
log.Info("Shadowsocks|Server: Failed to transport all TCP response: ", err)
|
log.Info("Shadowsocks|Server: Failed to transport all TCP response: ", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user