@@ -61,6 +61,8 @@ func (this *Client) Dispatch(destination v2net.Destination, payload *alloc.Buffe
}
log.Info("Shadowsocks|Client: Tunneling request to ", destination, " via ", server.Destination())
+ conn.SetReusable(false)
+
request := &protocol.RequestHeader{
Version: Version,
Address: destination.Address,
@@ -146,6 +146,7 @@ func (this *Server) handlerUDPPayload(payload *alloc.Buffer, session *proxy.Sess
func (this *Server) handleConnection(conn internet.Connection) {
defer conn.Close()
timedReader := v2net.NewTimeOutReader(16, conn)
defer timedReader.Release()