- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for create_stream (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go
return } defer conn.Close() if resp.StatusCode != http.StatusSwitchingProtocols { t.Fatalf("expected http 101 switching protocols, got %d", resp.StatusCode) } stream, err := conn.CreateStream(http.Header{}) if err != nil { t.Fatalf("error creating client stream: %s", err) } n, err := stream.Write([]byte("hello")) if err != nil { t.Fatalf("error writing to stream: %s", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 32.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device.cc
// pool to avoid potential lifetime issues. TF_ASSIGN_OR_RETURN( stream_, backend->stream_executors()[device_ordinal_]->CreateStream()); TF_RETURN_IF_ERROR(EnsureStreamOkLocked(backend, "stream", &stream_, &need_new_device_context)); (*global_compute_streams_)[device_ordinal_] = stream_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 21:05:42 UTC 2024 - 24.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go
randomSize := 1024 * 1024 randomData := make([]byte, randomSize) _, err = rand.Read(randomData) require.NoError(t, err) var actual []byte go func() { clientStream, err := spdyClient.CreateStream(http.Header{}) require.NoError(t, err) _, err = io.Copy(clientStream, bytes.NewReader(randomData)) require.NoError(t, err) clientStream.Close() //nolint:errcheck }() select {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 02:21:50 UTC 2024 - 22.7K bytes - Viewed (0)