Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 747 for sessions (0.08 seconds)

  1. tests/test_dependency_yield_scope_websockets.py

            {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
        )
    
    
    @app.websocket("/regular-function-scope")
    async def get_regular_function_scope(
        websocket: WebSocket, sessions: RegularSessionsDep
    ) -> Any:
        await websocket.accept()
        await websocket.send_json(
            {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
        )
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  2. tests/test_dependency_yield_scope.py

    SessionDefaultDep = Annotated[Session, Depends(dep_session)]
    
    
    class NamedSession:
        def __init__(self, name: str = "default") -> None:
            self.name = name
            self.open = True
    
    
    def get_named_session(session: SessionRequestDep, session_b: SessionDefaultDep) -> Any:
        assert session is session_b
        named_session = NamedSession(name="named")
        yield named_session, session_b
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

         * @return the session, or null if not found or expired
         */
        public ChatSession getSession(final String sessionId) {
            final ChatSession session = findSession(sessionId);
            if (session == null) {
                return null;
            }
            session.touch();
            if (logger.isDebugEnabled()) {
                logger.debug("Session retrieved. sessionId={}, messageCount={}", sessionId, session.getMessages().size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

          } else {
            assertThat(sessionIds[0]).isNotEmpty()
            assertThat(sessionIds[1]).isNotEmpty()
    
            assertThat(directSessionIds).containsExactlyInAnyOrder(sessionIds[1])
          }
        } else {
          if (tlsVersion == TlsVersion.TLS_1_3) {
            // We can't rely on the same session id with TLSv1.3 ids.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 5.9K bytes
    - Click Count (1)
  5. src/main/java/org/codelibs/fess/job/PurgeLogJob.java

            final StringBuilder resultBuf = new StringBuilder();
    
            // purge crawling sessions
            try {
                crawlingInfoService.deleteBefore(systemHelper.getCurrentTimeAsLong());
            } catch (final Exception e) {
                logger.error("Failed to purge crawling sessions.", e);
                resultBuf.append(e.getMessage()).append("\n");
            }
    
            // purge search logs
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

        }
    
        /**
         * Retrieves the parameters from the most recent crawling session for a given session ID.
         * Returns an empty list if no crawling information is found for the session.
         *
         * @param sessionId the session identifier to find the latest crawling parameters for
         * @return a list of CrawlingInfoParam entities from the latest session, or empty list if none found
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  7. tensorflow/c/c_api_internal.h

      // The keys of this map are all the active sessions using this graph. Each
      // value records whether the graph has been mutated since the corresponding
      // session has been run (this is detected in RecordMutation function). If the
      // string is empty, no mutation has occurred. Otherwise the string is a
      // description of the mutation suitable for returning to the user.
      //
      // Sessions are added to this map in TF_NewSession, and removed in
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/advanced/testing-websockets.md

    為此,你可以在 `with` 陳述式中使用 `TestClient`,連線到該 WebSocket:
    
    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note | 注意
    
    想了解更多,請參考 Starlette 的[測試 WebSocket](https://www.starlette.dev/testclient/#testing-websocket-sessions)文件。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 420 bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            assertEquals(0, JsonPath.from(response).getInt("response.status"));
    
            // Test with session ID filter
            if (!logList.isEmpty()) {
                final String sessionId = (String) logList.get(0).get("session_id");
                final Map<String, Object> filterBody = new HashMap<>();
                filterBody.put("session_id", sessionId);
                response = checkMethodBase(filterBody).get("/api/admin/crawlinginfo/logs").asString();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:01:34 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/testing-websockets.md

    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note
    
    For more details, check Starlette's documentation for [testing WebSockets](https://www.starlette.dev/testclient/#testing-websocket-sessions).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 411 bytes
    - Click Count (0)
Back to Top