Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for newConn (0.1 sec)

  1. src/net/smtp/smtp_test.go

    	var cmdbuf strings.Builder
    	bcmdbuf := bufio.NewWriter(&cmdbuf)
    	var fake faker
    	fake.ReadWriter = bufio.NewReadWriter(bufio.NewReader(strings.NewReader(server)), bcmdbuf)
    	c := &Client{Text: textproto.NewConn(fake), localName: "localhost"}
    
    	if err := c.helo(); err != nil {
    		t.Fatalf("HELO failed: %s", err)
    	}
    	if err := c.ehlo(); err == nil {
    		t.Fatalf("Expected first EHLO to fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. src/net/smtp/smtp.go

    }
    
    // NewClient returns a new [Client] using an existing connection and host as a
    // server name to be used when authenticating.
    func NewClient(conn net.Conn, host string) (*Client, error) {
    	text := textproto.NewConn(conn)
    	_, _, err := text.ReadResponse(220)
    	if err != nil {
    		text.Close()
    		return nil, err
    	}
    	c := &Client{Text: text, conn: conn, serverName: host, localName: "localhost"}
    	_, c.tls = conn.(*tls.Conn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationContainerTest.groovy

        )
    
        def addsNewConfigurationWhenConfiguringSelf() {
            when:
            configurationContainer.configure {
                newConf
            }
    
            then:
            configurationContainer.findByName('newConf') != null
            configurationContainer.newConf != null
        }
    
        def doesNotAddNewConfigurationWhenNotConfiguringSelf() {
            when:
            configurationContainer.getByName('unknown')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:29:40 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. pkg/controller/deployment/progress_test.go

    				t.Error(err)
    			}
    
    			newCond := util.GetDeploymentCondition(test.d.Status, test.conditionType)
    			switch {
    			case newCond == nil:
    				if test.d.Spec.ProgressDeadlineSeconds != nil && *test.d.Spec.ProgressDeadlineSeconds != math.MaxInt32 {
    					t.Errorf("%s: expected deployment condition: %s", test.name, test.conditionType)
    				}
    			case newCond.Status != test.conditionStatus || newCond.Reason != test.conditionReason:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/net/sendfile_test.go

    	"bytes"
    	"context"
    	"crypto/sha256"
    	"encoding/hex"
    	"errors"
    	"fmt"
    	"internal/poll"
    	"io"
    	"os"
    	"runtime"
    	"strconv"
    	"sync"
    	"testing"
    	"time"
    )
    
    const (
    	newton       = "../testdata/Isaac.Newton-Opticks.txt"
    	newtonLen    = 567198
    	newtonSHA256 = "d4a9ac22462b35e7821a4f2706c211093da678620a8f9997989ee7cf8d507bbd"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. internal/ringbuffer/ring_buffer.go

    // This setting should be called before any Read or Write operation or after a Reset.
    func (r *RingBuffer) SetBlocking(block bool) *RingBuffer {
    	r.block = block
    	if block {
    		r.readCond = sync.NewCond(&r.mu)
    		r.writeCond = sync.NewCond(&r.mu)
    	}
    	return r
    }
    
    // WithCancel sets a context to cancel the ring buffer.
    // When the context is canceled, the ring buffer will be closed with the context error.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/index/suffixarray/suffixarray_test.go

    		New(data)
    	}
    }
    
    func makeText(name string) ([]byte, error) {
    	var data []byte
    	switch name {
    	case "opticks":
    		var err error
    		data, err = os.ReadFile("../../testdata/Isaac.Newton-Opticks.txt")
    		if err != nil {
    			return nil, err
    		}
    	case "go":
    		err := filepath.WalkDir("../..", func(path string, info fs.DirEntry, err error) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    		groupResource:       groupResource,
    		waitingUntilFresh:   progressRequester,
    	}
    	metrics.WatchCacheCapacity.WithLabelValues(groupResource.String()).Set(float64(wc.capacity))
    	wc.cond = sync.NewCond(wc.RLocker())
    	wc.indexValidator = wc.isIndexValidLocked
    
    	return wc
    }
    
    // Add takes runtime.Object as an argument.
    func (w *watchCache) Add(obj interface{}) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. src/math/big/nat.go

    		rr := make(nat, numWords)
    		copy(rr, x)
    		x = rr
    	}
    
    	// Ideally the precomputations would be performed outside, and reused
    	// k0 = -m**-1 mod 2**_W. Algorithm from: Dumas, J.G. "On Newton–Raphson
    	// Iteration for Multiplicative Inverses Modulo Prime Powers".
    	k0 := 2 - m[0]
    	t := m[0] - 1
    	for i := 1; i < _W; i <<= 1 {
    		t *= t
    		k0 *= (t + 1)
    	}
    	k0 = -k0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top