Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 252 for timing (0.04 seconds)

  1. android/guava/src/com/google/common/net/HttpHeaders.java

      public static final String SERVER = "Server";
    
      /**
       * The HTTP <a href="https://www.w3.org/TR/server-timing/">{@code Server-Timing}</a> header field
       * name.
       *
       * @since 23.6
       */
      public static final String SERVER_TIMING = "Server-Timing";
    
      /**
       * The HTTP <a href="https://www.w3.org/TR/service-workers/#update-algorithm">{@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 24 14:36:23 GMT 2026
    - 35.6K bytes
    - Click Count (0)
  2. docs/zh/docs/advanced/security/http-basic-auth.md

    这类似于:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Return some error
        ...
    ```
    
    但使用 `secrets.compare_digest()`,可以防御**时差攻击**,更加安全。
    
    ### 时差攻击 { #timing-attacks }
    
    什么是**时差攻击**?
    
    假设攻击者试图猜出用户名与密码。
    
    他们发送用户名为 `johndoe`,密码为 `love123` 的请求。
    
    然后,Python 代码执行如下操作:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/advanced/security/http-basic-auth.md

    這大致等同於:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # 回傳錯誤
        ...
    ```
    
    但藉由使用 `secrets.compare_digest()`,可以防禦一種稱為「計時攻擊」的攻擊。
    
    ### 計時攻擊 { #timing-attacks }
    
    什麼是「計時攻擊」呢?
    
    想像有攻擊者在嘗試猜測使用者名稱與密碼。
    
    他們送出一個帶有使用者名稱 `johndoe` 與密碼 `love123` 的請求。
    
    接著,你的應用程式中的 Python 程式碼等同於:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/ResourceManagerTest.java

            // Check for leaks
            resourceManager.checkForLeaks();
    
            Map<String, Object> stats = resourceManager.getStatistics();
            // The leak counter may or may not increment depending on GC timing
            assertNotNull(stats.get("totalLeaks"));
        }
    
        private void createLeakyResource() {
            TestResource resource = new TestResource("leaky");
            resourceManager.registerResource(resource);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                }
            }, CrawlingInfoService.class.getCanonicalName());
    
            crawlingInfoHelper.updateParams(sessionId, "Test Crawl", 5);
    
            // Verify documentExpires is set (don't check exact timing due to test environment timing issues)
            assertTrue("documentExpires should be set", crawlingInfoHelper.documentExpires > 0);
        }
    
        @Test
        public void test_updateParams_defaultName() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

     *   <li>Thread pool management for crawler execution</li>
     *   <li>Session-based crawling with cleanup operations</li>
     *   <li>Old document deletion after successful crawling</li>
     *   <li>Crawling execution monitoring and timing</li>
     * </ul>
     */
    public class DataIndexHelper {
    
        /** Logger instance for this class */
        private static final Logger logger = LogManager.getLogger(DataIndexHelper.class);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 19K bytes
    - Click Count (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

                activeThreads--
                startNextTask()
              }
            }
          }
        }
      }
    
      /**
       * This blocking queue hooks into a fake clock rather than using regular JVM timing for functions
       * like [poll]. It is only usable within task faker tasks.
       */
      private inner class TaskFakerBlockingQueue<T>(
        val delegate: BlockingQueue<T>,
      ) : AbstractQueue<T>(),
        BlockingQueue<T> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                final byte[] cmp = new byte[SIGNATURE_LENGTH];
                System.arraycopy(mac.doFinal(), 0, cmp, 0, SIGNATURE_LENGTH);
    
                // Use constant-time comparison to prevent timing attacks
                if (!MessageDigest.isEqual(sig, cmp)) {
                    return false; // Signature verification failed
                }
                return true; // Signature verification succeeded
            } finally {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

    import jakarta.annotation.PreDestroy;
    
    /**
     * Helper class for managing crawler statistics and performance metrics.
     * This class provides functionality to track, record, and report statistics
     * about crawler operations including timing data, performance metrics, and
     * operational events. It uses an internal cache to maintain statistics
     * objects and provides methods to begin tracking, record events, and
     * finalize statistics collection.
     *
     */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/entity/SearchRenderData.java

    /**
     * Data container for search results rendering.
     *
     * This class holds all the data needed to render search results in the UI,
     * including the actual search results, pagination information, facet data,
     * execution timing, and highlighting parameters.
     */
    public class SearchRenderData {
    
        /** List of search result documents. */
        protected List<Map<String, Object>> documentItems;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.5K bytes
    - Click Count (0)
Back to Top