Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,261 for closeFD (0.46 sec)

  1. src/net/http/transport.go

    	if err == nil {
    		panic("nil error")
    	}
    	pc.broken = true
    	if pc.closed == nil {
    		pc.closed = err
    		pc.t.decConnsPerHost(pc.cacheKey)
    		// Close HTTP/1 (pc.alt == nil) connection.
    		// HTTP/2 closes its connection itself.
    		if pc.alt == nil {
    			if err != errCallerOwnsConn {
    				pc.conn.Close()
    			}
    			close(pc.closech)
    		}
    	}
    	pc.mutateHeaderFunc = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/MultiProcessSafeIndexedCacheTest.groovy

            1 * backingCache.close()
            0 * _._
        }
    
        def "closes cache when closed"() {
            given:
            cacheOpened()
    
            when:
            cache.finishWork()
    
            then:
            1 * fileAccess.writeFile(!null) >> { Runnable action -> action.run() }
            1 * backingCache.close()
            0 * _._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.5K 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. 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)
  5. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        ) {
          check(!closed) { "closed" }
          checkOffsetAndCount(source.size, 0, byteCount)
          sink.write(source, byteCount)
        }
    
        override fun flush() {
          if (closed) return // Don't throw; this stream might have been closed on the caller's behalf.
          sink.flush()
        }
    
        override fun close() {
          if (closed) return
          closed = true
          detachTimeout(timeout)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. internal/grid/stream.go

    // the appropriate error will be returned.
    type Stream struct {
    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    	// Canceling the context will cause the context cancellation error to be returned.
    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. 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)
  8. cmd/metacache-stream.go

    				continue
    			}
    		}
    	}()
    
    	return objs, nil
    }
    
    // Close and release resources.
    func (w *metacacheWriter) Close() error {
    	if w == nil || w.closer == nil {
    		return nil
    	}
    	w.streamWg.Wait()
    	err := w.closer()
    	w.closer = nil
    	return err
    }
    
    // Reset and start writing to new writer.
    // Close must have been called before this.
    func (w *metacacheWriter) Reset(out io.Writer) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 1024)
        val source1 = relay.newSource()
        val source2 = relay.newSource()
        source1!!.close()
        source1.close() // Unnecessary. Shouldn't decrement the reference count.
        assertThat(relay.isClosed).isFalse()
        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
      fun racingReaders() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. pkg/test/echo/server/forwarder/http.go

    			QUICConfig:      &quic.Config{},
    		}
    	}
    	closeFn := func(conn *http3.RoundTripper) func() {
    		return func() {
    			_ = conn.Close()
    		}
    	}
    	noCloseFn := func() {}
    
    	if cfg.newConnectionPerRequest {
    		// Create a new transport (i.e. connection) for each request.
    		return func() (http.RoundTripper, func(), error) {
    			conn := newConn()
    			return conn, closeFn(conn), nil
    		}, noCloseFn
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top