Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,473 for close1 (0.12 sec)

  1. src/database/sql/sql.go

    	si          driver.Stmt
    	closed      bool
    	closeErr    error // return value of previous Close call
    }
    
    // Close ensures driver.Stmt is only closed once and always returns the same
    // result.
    func (ds *driverStmt) Close() error {
    	ds.Lock()
    	defer ds.Unlock()
    	if ds.closed {
    		return ds.closeErr
    	}
    	ds.closed = true
    	ds.closeErr = ds.si.Close()
    	return ds.closeErr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. 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)
  3. src/net/http/response.go

    	// nil, means that "identity" encoding is used.
    	TransferEncoding []string
    
    	// Close records whether the header directed that the connection be
    	// closed after reading Body. The value is advice for clients: neither
    	// ReadResponse nor Response.Write ever closes a connection.
    	Close bool
    
    	// Uncompressed reports whether the response was sent compressed but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        //     we find them, regardless of what the address policies need.
        //
        //  2. EVICTABLE: Connections not required by any address policy. This matches connections that
        //     don't participate in any policy, plus connections whose policies won't be violated if the
        //     connection is closed. We only close these if the idle connection limit is exceeded.
        //
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K 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/internal/fuzz/worker.go

    // and closes it after the worker process closes the other end.
    func (wc *workerClient) Close() error {
    	wc.mu.Lock()
    	defer wc.mu.Unlock()
    
    	// Close fuzzIn. This signals to the server that there are no more calls,
    	// and it should exit.
    	if err := wc.fuzzIn.Close(); err != nil {
    		wc.fuzzOut.Close()
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  10. 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)
Back to top