Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,382 for exceeds (0.05 seconds)

  1. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // Multiple writes that exceed threshold should switch to file
            ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2 });
            assertTrue(cos.isInMemory());
            cos.write(new byte[] { 3, 4, 5 }); // Total 6 bytes, exceeds threshold of 5
            assertFalse(cos.isInMemory());
            File file = cos.getFile();
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

    import java.util.logging.Logger;
    
    import org.apache.commons.io.output.DeferredFileOutputStream;
    
    /**
     * ContentOutputStream is a custom output stream that extends DeferredFileOutputStream.
     * It writes data to a temporary file once the data size exceeds a specified threshold.
     *
     * <p>This class ensures that the temporary file is deleted if it is not needed.
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/filter/LoadControlFilter.java

    import jakarta.servlet.http.HttpServletRequest;
    import jakarta.servlet.http.HttpServletResponse;
    
    /**
     * Filter for CPU load-based request control.
     * Returns HTTP 429 (Too Many Requests) when CPU usage exceeds configurable thresholds.
     * Web and API requests have independent threshold settings.
     */
    public class LoadControlFilter implements Filter {
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Feb 10 04:24:02 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CallLimitsTest.kt

            .build(),
        )
        val call = client.newCall(Request(url = server.url("/")))
        assertFailsWith<IOException> {
          call.execute()
        }
      }
    
      /** Use a header that exceeds the limits on its own. */
      @Test
      fun largeResponseHeader() {
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Set-Cookie", "a=${"A".repeat(256 * 1024)}")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

        }
      }
    
      private fun loggerTag(loggerName: String): String {
        // We need to handle long logger names before they hit Log.
        // java.lang.IllegalArgumentException: Log tag "okhttp3.mockwebserver.MockWebServer" exceeds limit of 23 characters
        return knownLoggers[loggerName] ?: loggerName.take(23)
      }
    
      fun enable() {
        try {
          for ((logger, tag) in knownLoggers) {
            enableLogging(logger, tag)
          }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Oct 25 11:16:17 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java

                timeoutTask.cancel();
            }
            if (logNotificationTarget != null) {
                logNotificationTarget.flush();
            }
        }
    
        /**
         * Offers an event to the buffer. If the buffer exceeds the maximum size, the oldest event is dropped.
         *
         * @param event the log notification event to add
         */
        public void offer(final LogNotificationEvent event) {
            int maxBufferSize;
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/io/FileUtil.java

         * <p>
         * <strong>Note:</strong> This method loads the entire file into memory.
         * An {@link IORuntimeException} will be thrown if the file exceeds the specified maxSize
         * to prevent OutOfMemoryError. For large files, use streaming APIs instead.
         * </p>
         *
         * @param file
         *            The file. Must not be {@literal null}.
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  8. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        } catch (ioe: IOException) {
          assertThat(ioe.message).isEqualTo("google.com")
          val cause = ioe.cause!!
          assertThat(cause).isInstanceOf<IOException>()
          assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes")
        }
      }
    
      @Test
      fun failOnBadResponse() {
        server.enqueue(dnsResponse("00"))
        try {
          dns.lookup("google.com")
          fail<Any>()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                final int maxMessageLength = getMaxMessageLength(fessConfig);
                if (message.length() > maxMessageLength) {
                    logger.warn("Chat message exceeds max length. length={}, max={}", message.length(), maxMessageLength);
                    writeJsonResponse(response, HttpServletResponse.SC_BAD_REQUEST,
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

                            } else {
                                responseData.setResponseBody(file, false);
                                if (logger.isDebugEnabled()) {
                                    logger.debug("File size exceeds cache threshold, using file reference: file={}, size={}, threshold={}",
                                            file.getAbsolutePath(), file.length(), maxCachedContentSize);
                                }
                            }
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Nov 23 12:19:14 GMT 2025
    - 15.1K bytes
    - Click Count (0)
Back to Top