mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: fix spelling
This commit is contained in:
parent
2b0e29f516
commit
5d0b55d491
5 changed files with 5 additions and 5 deletions
|
|
@ -5,7 +5,7 @@
|
|||
// +build !android
|
||||
|
||||
// Test that pthread_cancel works as expected
|
||||
// (NPTL uses SIGRTMIN to implement thread cancelation)
|
||||
// (NPTL uses SIGRTMIN to implement thread cancellation)
|
||||
// See https://golang.org/issue/6997
|
||||
package cgotest
|
||||
|
||||
|
|
|
|||
|
|
@ -1945,7 +1945,7 @@ func TestClientDoCanceledVsTimeout_h2(t *testing.T) {
|
|||
}
|
||||
|
||||
// Issue 33545: lock-in the behavior promised by Client.Do's
|
||||
// docs about request cancelation vs timing out.
|
||||
// docs about request cancellation vs timing out.
|
||||
func testClientDoCanceledVsTimeout(t *testing.T, h2 bool) {
|
||||
defer afterTest(t)
|
||||
cst := newClientServerTest(t, h2, HandlerFunc(func(w ResponseWriter, r *Request) {
|
||||
|
|
|
|||
|
|
@ -562,7 +562,7 @@ func (p *ReverseProxy) handleUpgradeResponse(rw http.ResponseWriter, req *http.R
|
|||
|
||||
backConnCloseCh := make(chan bool)
|
||||
go func() {
|
||||
// Ensure that the cancelation of a request closes the backend.
|
||||
// Ensure that the cancellation of a request closes the backend.
|
||||
// See issue https://golang.org/issue/35559.
|
||||
select {
|
||||
case <-req.Context().Done():
|
||||
|
|
|
|||
|
|
@ -1208,7 +1208,7 @@ func TestReverseProxyWebSocket(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestReverseProxyWebSocketCancelation(t *testing.T) {
|
||||
func TestReverseProxyWebSocketCancellation(t *testing.T) {
|
||||
n := 5
|
||||
triggerCancelCh := make(chan bool, n)
|
||||
nthResponse := func(i int) string {
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ func (up *socksUsernamePassword) Authenticate(ctx context.Context, rw io.ReadWri
|
|||
b = append(b, up.Username...)
|
||||
b = append(b, byte(len(up.Password)))
|
||||
b = append(b, up.Password...)
|
||||
// TODO(mikio): handle IO deadlines and cancelation if
|
||||
// TODO(mikio): handle IO deadlines and cancellation if
|
||||
// necessary
|
||||
if _, err := rw.Write(b); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue