Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for closenotify (0.19 sec)

  1. src/crypto/tls/conn.go

    		// waiting on handshakeMutex or the c.out mutex.
    		return c.conn.Close()
    	}
    
    	var alertErr error
    	if c.isHandshakeComplete.Load() {
    		if err := c.closeNotify(); err != nil {
    			alertErr = fmt.Errorf("tls: failed to send closeNotify alert (but connection was closed anyway): %w", err)
    		}
    	}
    
    	if err := c.conn.Close(); err != nil {
    		return err
    	}
    	return alertErr
    }
    
    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/net/http/httputil/reverseproxy_test.go

    		select {
    		case <-time.After(10 * time.Second):
    			// Note: this should only happen in broken implementations, and the
    			// closenotify case should be instantaneous.
    			t.Error("Handler never saw CloseNotify")
    			return
    		case <-w.(http.CloseNotifier).CloseNotify():
    		}
    
    		w.WriteHeader(http.StatusOK)
    		w.Write([]byte(backendResponse))
    	}))
    
    	defer backend.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
Back to top