MCPcopy
hub / github.com/cloudflare/cloudflared / Write

Method Write

connection/connection_test.go:172–177  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

170}
171
172func (fc *flakyConn) Write(p []byte) (int, error) {
173 if time.Now().After(fc.closeAt) {
174 return 0, fmt.Errorf("flaky connection closed")
175 }
176 return len(p), nil
177}
178
179func wsFlakyEndpoint(w ResponseWriter, r *http.Request) error {
180 resp := &http.Response{

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected