Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 86 for Retry (0.02 seconds)

  1. tests/test_sse.py

        yield ServerSentEvent(data="hello", event="greeting", id="1")
        yield ServerSentEvent(data={"key": "value"}, event="json-data", id="2")
        yield ServerSentEvent(comment="just a comment")
        yield ServerSentEvent(data="retry-test", retry=5000)
    
    
    @app.get("/items/stream-mixed", response_class=EventSourceResponse)
    async def sse_items_mixed() -> AsyncIterable[Item]:
        yield items[0]
        yield ServerSentEvent(data="custom-event", event="special")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

          // If the problem was a CertificateException from the X509TrustManager,
          // do not retry.
          if (e.cause is CertificateException) {
            return false
          }
        }
        if (e is SSLPeerUnverifiedException) {
          // e.g. a certificate pinning error.
          return false
        }
        // An example of one we might want to retry with a different route is a problem connecting to a
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  3. fastapi/sse.py

        if data_str is not None:
            for line in data_str.splitlines():
                lines.append(f"data: {line}")
    
        if id is not None:
            lines.append(f"id: {id}")
    
        if retry is not None:
            lines.append(f"retry: {retry}")
    
        lines.append("")
        lines.append("")
        return "\n".join(lines).encode("utf-8")
    
    
    # Keep-alive comment, per the SSE spec recommendation
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/FakeRoutePlanner.kt

        var tlsConnectDelayNanos = 0L
        var tlsConnectThrowable: Throwable? = null
        var connectTlsNextPlan: FakePlan? = null
    
        fun createRetry(): FakePlan {
          check(retry == null)
          return FakePlan(nextPlanId++)
            .also {
              retry = it
            }
        }
    
        fun createConnectTcpNextPlan(): FakePlan {
          check(connectTcpNextPlan == null)
          return FakePlan(nextPlanId++)
            .also {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/filter/RateLimitFilter.java

         * @param retryAfterSeconds the Retry-After header value
         * @throws IOException if an I/O error occurs
         */
        protected void sendRateLimitResponse(final HttpServletResponse response, final int retryAfterSeconds) throws IOException {
            response.setStatus(429); // Too Many Requests
            response.setContentType("application/json;charset=UTF-8");
            response.setHeader("Retry-After", String.valueOf(retryAfterSeconds));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

        }
    
        /**
         * Sets the retry interval in milliseconds.
         *
         * @param retryInterval The retry interval.
         */
        public void setRetryInterval(final long retryInterval) {
            this.retryInterval = retryInterval;
        }
    
        /**
         * Sets the maximum retry count.
         *
         * @param maxRetryCount The maximum retry count.
         */
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Nov 23 02:01:26 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

     *    we must send a `CONNECT` request, and handle authorization challenges from the proxy.
     *  * Optional [TLS handshake][connectTls].
     *
     * Each step may fail. If a retry is possible, a new instance is created with the next plan, which
     * will be configured differently.
     */
    class ConnectPlan internal constructor(
      private val taskRunner: TaskRunner,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 19.3K bytes
    - Click Count (2)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

        return result
      }
    
      private fun cancelInFlightConnects() {
        for (plan in tcpConnectsInFlight) {
          plan.cancel()
          val retry = plan.retry() ?: continue
          routePlanner.deferredPlans.addLast(retry)
        }
        tcpConnectsInFlight.clear()
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            // 15
            "event\r\n".encodeUtf8(),
            // 16
            "event\r".encodeUtf8(),
            // 17
            "event\n".encodeUtf8(),
            // 18
            "retry: ".encodeUtf8(),
            // 19
            "retry:".encodeUtf8(),
          )
    
        private val CRLF = "\r\n".encodeUtf8()
    
        @Throws(IOException::class)
        private fun BufferedSource.readData(data: Buffer) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/filter/LoadControlFilter.java

            response.setStatus(429);
            response.setContentType("application/json;charset=UTF-8");
            response.setHeader("Retry-After", String.valueOf(RETRY_AFTER_SECONDS));
            response.getWriter()
                    .write("{\"response\":{\"status\":9,\"message\":\"Server is busy. Please retry after " + RETRY_AFTER_SECONDS
                            + " seconds.\",\"retry_after\":" + RETRY_AFTER_SECONDS + "}}");
        }
    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)
Back to Top