Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 872 for lose (0.02 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

       */
      private val routePlanner = FakeRoutePlanner(taskFaker = taskFaker)
      private val finder = FastFallbackExchangeFinder(routePlanner, taskRunner)
    
      @AfterEach
      fun tearDown() {
        taskFaker.close()
        routePlanner.close()
      }
    
      @Test
      fun takeConnectedConnection() {
        val plan0 = routePlanner.addPlan()
        plan0.connectState = TLS_CONNECTED
    
        taskRunner.newQueue().execute("connect") {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

        Files.copy(i18nFile, temp);
        assertTrue(Files.equal(i18nFile, temp));
    
        Files.copy(asciiFile, temp);
        RandomAccessFile rf = new RandomAccessFile(temp, "rw");
        rf.writeByte(0);
        rf.close();
        assertEquals(asciiFile.length(), temp.length());
        assertFalse(Files.equal(asciiFile, temp));
    
        assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile)));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

            .bodyDelay(1, TimeUnit.SECONDS)
            .body(protocol, "Hello")
            .build(),
        )
    
        val call = client.newCall(Request(server.url("/")))
        call.execute().use { response ->
          response.close()
          assertFailsWith<IOException> {
            response.trailers()
          }
        }
      }
    
      @Test
      fun readTrailersAfterEarlyEofAndCloseHttp1() {
        readTrailersAfterEarlyEofAndClose(Protocol.HTTP_1_1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 18K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/witness/WitnessClient.java

                log.warn("Error during witness client shutdown", e);
            }
    
            // Shutdown scheduler
            scheduler.shutdown();
    
            // Close RPC client
            if (rpcClient != null) {
                rpcClient.close();
            }
        }
    
        /**
         * Starts asynchronous notification monitoring for a registration.
         *
         * @param registration the witness registration
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          checkNotNull(bytes);
          File file = createFile();
          OutputStream out = new FileOutputStream(file);
          try {
            out.write(bytes);
          } finally {
            out.close();
          }
          return Files.asByteSource(file);
        }
    
        @Override
        public byte[] getExpected(byte[] bytes) {
          return checkNotNull(bytes);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            // Mock the static parse method of KerberosAuthData
            mockedStaticAuthData = mockStatic(KerberosAuthData.class);
        }
    
        @AfterEach
        void tearDown() {
            // Close the static mock
            mockedStaticAuthData.close();
        }
    
        /**
         * Test constructor with a valid ASN.1 token.
         *
         * @throws IOException if ASN.1 encoding fails.
         * @throws PACDecodingException if PAC decoding fails.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

            try {
                assertNotNull("1", InputStreamUtil.getBytes(is));
            } finally {
                is.close();
            }
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/response-headers.md

    Y si declaraste un `response_model`, aún se usará para filtrar y convertir el objeto que devolviste.
    
    **FastAPI** usará ese response *temporal* para extraer los headers (también cookies y el código de estado), y los pondrá en el response final que contiene el valor que devolviste, filtrado por cualquier `response_model`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 17:46:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. cmd/object-api-utils.go

    				cleanUpFns: cFns,
    			}
    			return r, nil
    		}
    	}
    	return fn, off, length, nil
    }
    
    // Close - calls the cleanup actions in reverse order
    func (g *GetObjectReader) Close() error {
    	if g == nil {
    		return nil
    	}
    	// sync.Once is used here to ensure that Close() is
    	// idempotent.
    	g.once.Do(func() {
    		for i := len(g.cleanUpFns) - 1; i >= 0; i-- {
    			g.cleanUpFns[i]()
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 25 15:08:54 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  10. internal/lru/lru.go

    		c.removeOldest()
    	}
    	c.size = size
    	return diff
    }
    
    // Close destroys cleanup goroutine. To clean up the cache, run Purge() before Close().
    // func (c *LRU[K, V]) Close() {
    //	c.mu.Lock()
    //	defer c.mu.Unlock()
    //	select {
    //	case <-c.done:
    //		return
    //	default:
    //	}
    //	close(c.done)
    // }
    
    // removeOldest removes the oldest item from the cache. Has to be called with lock!
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top