Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for exhaustion (0.07 sec)

  1. src/main/java/jcifs/SmbResourceException.java

            }
        }
    
        /**
         * Static factory for file handle exhaustion
         */
        public static SmbResourceException fileHandleExhausted(int errorCode) {
            return new SmbResourceException("File handle limit exceeded", errorCode, ResourceType.FILE_HANDLE);
        }
    
        /**
         * Static factory for connection pool exhaustion
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            assertEquals("b", it.next().getName(), "Next element should skip '.' and '..'");
            assertFalse(it.hasNext(), "Iterator exhausted after valid entries");
            verify(tree, times(1)).release(); // closed after exhaustion
        }
    
        @ParameterizedTest
        @ValueSource(strings = { "", "file.txt", "subdir" })
        @DisplayName("Name filter interaction: accept calls and rejections")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * {@link PriorityQueue} and supplies blocking retrieval operations. While this queue is logically
     * unbounded, attempted additions may fail due to resource exhaustion (causing {@code
     * OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on
     * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            });
    
            assertTrue(exception.getMessage().contains("Invalid negotiate context count: 65535"));
        }
    
        /**
         * Test validation of excessive buffer sizes to prevent resource exhaustion.
         */
        @Test
        public void testExcessiveBufferSizes() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
            // Test excessive maxTransactSize (> 16MB)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            this.maxReadSize = SMBUtil.readInt4(buffer, bufferIndex + 4);
            this.maxWriteSize = SMBUtil.readInt4(buffer, bufferIndex + 8);
    
            // Validate reasonable buffer sizes to prevent resource exhaustion
            if (this.maxTransactSize < 0 || this.maxTransactSize > 16777216) { // 16MB max
                throw new SMBProtocolDecodingException("Invalid maxTransactSize: " + this.maxTransactSize + " (must be 0-16777216)");
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

                        val source = responseBody.source()
                        if (source.isOpen) {
                          source.skipAll()
                        }
                        return peek() ?: error("null trailers after exhausting response body?!")
                      }
                    },
                  ).build()
              }
            }
          if ("close".equals(response.request.header("Connection"), ignoreCase = true) ||
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 13:46:58 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/MathTesting.java

    import com.google.common.collect.Iterables;
    import com.google.common.primitives.Doubles;
    import java.math.BigInteger;
    import java.math.RoundingMode;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Exhaustive input sets for every integral type.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullUnmarked
    public final class MathTesting {
      static final ImmutableSet<RoundingMode> ALL_ROUNDING_MODES =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       * response body. Call `body.source().request(1024 * 1024)` to block until either that's done, or
       * 1 MiB of response data is loaded into memory. (You could use any size here, though large values
       * risk exhausting memory.)
       *
       * This returns an empty value if the trailers are available, but have no data.
       *
       * It is not safe to call this concurrently with code that is processing the response body.
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

                  }
                });
    
        List<String> actual = newArrayList(result);
        List<String> expected = asList("1", "2", "null", "3");
        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 45.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

        while (read(skipBuffer, 8192) != -1L) {
          skipBuffer.clear()
        }
        true // Success! The source has been exhausted.
      } catch (_: InterruptedIOException) {
        false // We ran out of time before exhausting the source.
      } finally {
        if (originalDurationNs == Long.MAX_VALUE) {
          timeout().clearDeadline()
        } else {
          timeout().deadlineNanoTime(nowNs + originalDurationNs)
        }
      }
    }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
Back to top