Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,175 for close1 (0.1 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/CancellationContinuousIntegrationTest.groovy

            then:
            cancelsAndExits()
        }
    
        def "should cancel build when System.in is closed"() {
            given:
            succeeds("build")
    
            when:
            gradle.stdinPipe.close()
    
            then:
            cancelsAndExits()
        }
    
        def "should cancel build when System.in contains some other characters, then closes"() {
            when:
            succeeds("build")
            stdinPipe << 'abc'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go

    const createStreamResponseTimeout = 30 * time.Second
    
    // Close first sends a reset for all of the connection's streams, and then
    // closes the underlying spdystream.Connection.
    func (c *connection) Close() error {
    	c.streamLock.Lock()
    	for _, s := range c.streams {
    		// calling Reset instead of Close ensures that all streams are fully torn down
    		s.Reset()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 15:04:07 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go

    	CreateStream(headers http.Header) (Stream, error)
    	// Close resets all streams and closes the connection.
    	Close() error
    	// CloseChan returns a channel that is closed when the underlying connection is closed.
    	CloseChan() <-chan bool
    	// SetIdleTimeout sets the amount of time the connection may remain idle before
    	// it is automatically closed.
    	SetIdleTimeout(timeout time.Duration)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. pkg/hbone/util.go

    			}
    			if ew != nil {
    				return
    			}
    		}
    		if err != nil {
    			// read is already closed - we need to close out
    			_ = closeWriter(dst)
    			return
    		}
    	}
    }
    
    // CloseWriter is one of possible interfaces implemented by Out to send a FIN, without closing
    // the input. Some writers only do this when Close is called.
    type CloseWriter interface {
    	CloseWrite() error
    }
    
    func closeWriter(dst io.Writer) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/compress/gzip/gzip.go

    	if z.err != nil {
    		return z.err
    	}
    	if z.closed {
    		return nil
    	}
    	if !z.wroteHeader {
    		z.Write(nil)
    		if z.err != nil {
    			return z.err
    		}
    	}
    	z.err = z.compressor.Flush()
    	return z.err
    }
    
    // Close closes the [Writer] by flushing any unwritten data to the underlying
    // [io.Writer] and writing the GZIP footer.
    // It does not close the underlying [io.Writer].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. internal/s3select/json/reader.go

    	}
    	dstRec.KVS = kvs
    	dstRec.SelectFormat = sql.SelectFmtJSON
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	// Close the input.
    	err := r.readCloser.Close()
    	for range r.valueCh {
    		// Drain values so we don't leak a goroutine.
    		// Since we have closed the input, it should fail rather quickly.
    	}
    	return err
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 24 03:58:53 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. src/strings/clone.go

    import (
    	"internal/stringslite"
    )
    
    // Clone returns a fresh copy of s.
    // It guarantees to make a copy of s into a new allocation,
    // which can be important when retaining only a small substring
    // of a much larger string. Using Clone can help such programs
    // use less memory. Of course, since using Clone makes a copy,
    // overuse of Clone can make programs use more memory.
    // Clone should typically be used only rarely, and only when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 809 bytes
    - Viewed (0)
  8. src/net/http/clone.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname cloneOrMakeHeader
    func cloneOrMakeHeader(hdr Header) Header {
    	clone := hdr.Clone()
    	if clone == nil {
    		clone = make(Header)
    	}
    	return clone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. src/net/http/transport_internal_test.go

    	"net/http/internal/testcert"
    	"strings"
    	"testing"
    )
    
    // Issue 15446: incorrect wrapping of errors when server closes an idle connection.
    func TestTransportPersistConnReadLoopEOF(t *testing.T) {
    	ln := newLocalListener(t)
    	defer ln.Close()
    
    	connc := make(chan net.Conn, 1)
    	go func() {
    		defer close(connc)
    		c, err := ln.Accept()
    		if err != nil {
    			t.Error(err)
    			return
    		}
    		connc <- c
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/debug/plan9obj/file.go

    	}
    	ff, err := NewFile(f)
    	if err != nil {
    		f.Close()
    		return nil, err
    	}
    	ff.closer = f
    	return ff, nil
    }
    
    // Close closes the [File].
    // If the [File] was created using [NewFile] directly instead of [Open],
    // Close has no effect.
    func (f *File) Close() error {
    	var err error
    	if f.closer != nil {
    		err = f.closer.Close()
    		f.closer = nil
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top