Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pkt2 (0.03 sec)

  1. src/crypto/tls/conn.go

    	if c.vers == VersionTLS13 {
    		payloadBytes-- // encrypted ContentType
    	}
    
    	// Allow packet growth in arithmetic progression up to max.
    	pkt := c.packetsSent
    	c.packetsSent++
    	if pkt > 1000 {
    		return maxPlaintext // avoid overflow in multiply below
    	}
    
    	n := payloadBytes * int(pkt+1)
    	if n > maxPlaintext {
    		n = maxPlaintext
    	}
    	return n
    }
    
    func (c *Conn) write(data []byte) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. src/cmd/dist/test.go

    		register1(test)
    		return
    	}
    	// TODO(dmitshur,austin): It might be better to unify the execution of 'go test pkg'
    	// invocations for the same variant to be done with a single 'go test pkg1 pkg2 pkg3'
    	// command, just like it's already done in registerStdTest and registerRaceBenchTest.
    	// Those methods accumulate matched packages in stdMatches and benchMatches slices,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top