Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dialStress (0.19 sec)

  1. test/stress/runstress.go

    	doParseGo = flag.Bool("parsego", true, "stress parsing Go (generates garbage)")
    )
    
    func Println(a ...interface{}) {
    	if *v {
    		log.Println(a...)
    	}
    }
    
    func dialStress(a net.Addr) {
    	for {
    		d := net.Dialer{Timeout: time.Duration(rand.Intn(1e9))}
    		c, err := d.Dial("tcp", a.String())
    		if err == nil {
    			Println("did dial")
    			go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top