Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dialTimeout (0.17 sec)

  1. misc/ios/go_ios_exec.go

    	}()
    	closer := func() {
    		cmd.Process.Kill()
    		<-errChan
    	}
    	// Dial localhost:3222 to ensure the proxy is ready.
    	delay := time.Second / 4
    	for attempt := 0; attempt < 5; attempt++ {
    		conn, err := net.DialTimeout("tcp", "localhost:3222", 5*time.Second)
    		if err == nil {
    			conn.Close()
    			return closer, nil
    		}
    		select {
    		case <-time.After(delay):
    			delay *= 2
    		case err := <-errChan:
    			return nil, err
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
Back to top