Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for RST_STREAM (0.24 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.sendFrame().headers(false, 3, headerEntries("a", "apple"))
        peer.sendFrame().data(false, 3, data(1024), 1024)
        peer.acceptFrame() // RST_STREAM
        peer.sendFrame().data(true, 3, data(1024), 1024)
        peer.acceptFrame() // RST_STREAM
        peer.play()
        val connection = connect(peer)
        val stream1 = connection.newStream(headerEntries("b", "bark"), false)
        val source = stream1.getSource()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. pilot/pkg/grpc/grpc_test.go

    // limitations under the License.
    
    package grpc
    
    import (
    	"errors"
    	"testing"
    )
    
    func TestIsExpectedGRPCError(t *testing.T) {
    	err := errors.New("code = Internal desc = stream terminated by RST_STREAM with error code: NO_ERROR")
    	if got := IsExpectedGRPCError(err); !got {
    		t.Fatalf("expected true, got %v", got)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 15 16:28:30 UTC 2021
    - 871 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			// that the effect of the panic was isolated to the active request.
    			// It recovers the panic, logs a stack trace to the server error log,
    			// and either closes the network connection or sends an HTTP/2
    			// RST_STREAM, depending on the HTTP protocol. To abort a handler so
    			// the client sees an interrupted response but the server doesn't log
    			// an error, panic with the value ErrAbortHandler.
    			//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

      const val FLAG_COMPRESSED = 0x20 // Used for data.
    
      /** Lookup table for valid frame types. */
      private val FRAME_NAMES =
        arrayOf(
          "DATA", "HEADERS", "PRIORITY", "RST_STREAM", "SETTINGS", "PUSH_PROMISE", "PING", "GOAWAY",
          "WINDOW_UPDATE", "CONTINUATION",
        )
    
      /**
       * Lookup table for valid flags for DATA, HEADERS, CONTINUATION. Invalid combinations are
       * represented in binary.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. pilot/pkg/grpc/grpc.go

    		if s.Code() == codes.Unavailable && containsExpectedMessage(s.Message()) {
    			return true
    		}
    	}
    	// If this is not a gRPCStatus we should just error message.
    	if strings.Contains(err.Error(), "stream terminated by RST_STREAM with error code: NO_ERROR") {
    		return true
    	}
    	if strings.Contains(err.Error(), "received prior goaway: code: NO_ERROR") {
    		return true
    	}
    
    	return false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 17 04:27:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go

    		// that the effect of the panic was isolated to the active request.
    		// It recovers the panic, logs a stack trace to the server error log,
    		// and either closes the network connection or sends an HTTP/2
    		// RST_STREAM, depending on the HTTP protocol. To abort a handler so
    		// the client sees an interrupted response but the server doesn't log
    		// an error, panic with the value ErrAbortHandler.
    		//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/net/http/h2_bundle.go

    	// it waits for the frame to be written.
    	//
    	// As an exception to this rule, we allow sending RST_STREAM after close.
    	// This allows us to immediately reject new streams without tracking any
    	// state for those streams (except for the queued RST_STREAM frame). This
    	// may result in duplicate RST_STREAMs in some cases, but the client should
    	// ignore those.
    	if wr.StreamID() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          check(hasResponseHeaders || isLocallyInitiated) {
            "reply before requesting the sink"
          }
        }
        return sink
      }
    
      /**
       * Abnormally terminate this stream. This blocks until the `RST_STREAM` frame has been
       * transmitted.
       */
      @Throws(IOException::class)
      fun close(
        rstStatusCode: ErrorCode,
        errorException: IOException?,
      ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	}
    }
    
    // TestErrConnKilledHTTP2 check if HTTP/2 connection is not closed when an HTTP handler panics
    // The net/http library recovers the panic and sends an HTTP/2 RST_STREAM.
    func TestErrConnKilledHTTP2(t *testing.T) {
    	var buf bytes.Buffer
    	klog.SetOutput(&buf)
    	klog.LogToStderr(false)
    	defer klog.LogToStderr(true)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_4x.md

        when OkHttp retrieves ALPN state on a closed connection.
    
    
    ## Version 4.9.3
    
    _2021-11-21_
    
     *  Fix: Don't fail HTTP/2 responses if they complete before a `RST_STREAM` is sent.
    
    
    ## Version 4.9.2
    
    _2021-09-30_
    
     *  Fix: Don't include potentially-sensitive header values in `Headers.toString()` or exceptions.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top