Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 129 for read_all (0.19 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        val c1 = factory.newConnection(pool, routeA1, 50L)
        val client =
          OkHttpClient.Builder()
            .connectionPool(poolApi)
            .build()
        val call = client.newCall(Request(addressA.url)) as RealCall
        call.enterNetworkInterceptorExchange(call.request(), true, factory.newChain(call))
        c1.withLock { call.acquireConnectionNoEvents(c1) }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

    import okio.buffer
    
    /**
     * Transmits a single HTTP request and a response pair. This layers connection management and events
     * on [ExchangeCodec], which handles the actual I/O.
     */
    class Exchange(
      internal val call: RealCall,
      internal val eventListener: EventListener,
      internal val finder: ExchangeFinder,
      private val codec: ExchangeCodec,
    ) {
      /** True if the request body need not complete before the response body starts. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  3. cni/pkg/nodeagent/cni-watcher.go

    	if req.Body == nil {
    		log.Error("empty request body")
    		http.Error(w, "empty request body", http.StatusBadRequest)
    		return
    	}
    	defer req.Body.Close()
    	data, err := io.ReadAll(req.Body)
    	if err != nil {
    		log.Errorf("Failed to read event report from cni plugin: %v", err)
    		http.Error(w, err.Error(), http.StatusInternalServerError)
    		return
    	}
    	msg, err := processAddEvent(data)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

                                 status_);
        if (TF_GetCode(status_) != TF_OK) return;
        tf_writable_file::Close(writer.get(), status_);
        if (TF_GetCode(status_) != TF_OK) return;
      }
    
      std::string ReadAll(const std::string& path) {
        auto reader = GetReader();
        tf_gcs_filesystem::NewRandomAccessFile(filesystem_, path.c_str(),
                                               reader.get(), status_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  5. internal/config/policy/plugin/config.go

    	}
    
    	resp, err := o.client.Do(req)
    	if err != nil {
    		return false, err
    	}
    	defer o.args.CloseRespFn(resp.Body)
    
    	// Read the body to be saved later.
    	opaRespBytes, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return false, err
    	}
    
    	// Handle large OPA responses when OPA URL is of
    	// form http://localhost:8181/v1/data/httpapi/authz
    	type opaResultAllow struct {
    		Result struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 14 21:50:16 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. cmd/erasure-encode.go

    	writer := &parallelWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    		errs:        make([]error, len(writers)),
    	}
    
    	for {
    		var blocks [][]byte
    		n, err := io.ReadFull(src, buf)
    		if err != nil {
    			if !IsErrIgnored(err, []error{
    				io.EOF,
    				io.ErrUnexpectedEOF,
    			}...) {
    				return 0, err
    			}
    		}
    
    		eof := err == io.EOF || err == io.ErrUnexpectedEOF
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		if rec.Code != testCase.expectedRespStatus {
    			b, _ := io.ReadAll(rec.Body)
    			t.Fatalf("Test %d: Expected the response status to be `%d`, but instead found `%d`: %s", i, testCase.expectedRespStatus, rec.Code, string(b))
    		}
    		if testCase.expectedRespStatus != http.StatusOK {
    			b, err := io.ReadAll(rec.Body)
    			if err != nil {
    				t.Fatal(err)
    			}
    			var apiErr APIErrorResponse
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskQueue
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.connection.RealCall.CallReference
    import okhttp3.internal.okHttpName
    import okhttp3.internal.platform.Platform
    import okio.IOException
    
    class RealConnectionPool(
      private val taskRunner: TaskRunner,
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  9. cmd/xl-storage_test.go

    		{
    			volume: "ab",
    			path:   "as-file",
    			err:    errVolumeNotFound,
    		},
    	}
    
    	var dataRead []byte
    	// Run through all the test cases and validate for ReadAll.
    	for i, testCase := range testCases {
    		dataRead, err = xlStorage.ReadAll(context.Background(), testCase.volume, testCase.path)
    		if err != testCase.err {
    			t.Errorf("TestXLStorage %d: Expected err \"%v\", got err \"%v\"", i+1, testCase.err, err)
    			continue
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       */
      internal var allocationLimit = 1
        private set
    
      /** Current calls carried by this connection. */
      val calls = mutableListOf<Reference<RealCall>>()
    
      /** Timestamp when `allocations.size()` reached zero. Also assigned upon initial connection. */
      var idleAtNs = Long.MAX_VALUE
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top