Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,687 for close1 (0.16 sec)

  1. internal/http/listener.go

    		if ok {
    			return result.conn, result.err
    		}
    	case <-listener.ctx.Done():
    	}
    	return nil, syscall.EINVAL
    }
    
    // Close - closes underneath all TCP listeners.
    func (listener *httpListener) Close() (err error) {
    	listener.ctxCanceler()
    
    	for i := range listener.listeners {
    		listener.listeners[i].Close()
    	}
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/net/http/client.go

    // Body which the user is expected to close. If the Body is not both
    // read to EOF and closed, the [Client]'s underlying [RoundTripper]
    // (typically [Transport]) may not be able to re-use a persistent TCP
    // connection to the server for a subsequent "keep-alive" request.
    //
    // The request Body, if non-nil, will be closed by the underlying
    // Transport, even on errors. The Body may be closed asynchronously after
    // Do returns.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  3. internal/s3select/select.go

    		}
    	}
    	return rsc.reader.Read(p)
    }
    
    // Close call to implement io.Closer. Calling Read/Seek after Close reopens the
    // object for reading and a subsequent Close call is required to ensure
    // resources are freed.
    func (rsc *ObjectReadSeekCloser) Close() error {
    	rsc.closerOnce.Do(func() {
    		if rsc.reader != nil {
    			rsc.closerErr = rsc.reader.Close()
    			rsc.reader = nil
    		}
    	})
    	return rsc.closerErr
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

          return webSocket!!.processNextFrame()
        }
    
        override fun close() {
          if (closed) {
            throw AssertionError("Already closed")
          }
          try {
            source.close()
          } catch (ignored: IOException) {
          }
          try {
            sink.close()
          } catch (ignored: IOException) {
          }
          closed = true
        }
    
        override fun cancel() {
          canceled = true
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    		io.Copy(io.Discard, r.Body)
    	})).ts
    
    	c := ts.Client()
    
    	closes := 0
    
    	res, err := c.Post(ts.URL, "text/plain", countCloseReader{&closes, strings.NewReader("hello")})
    	if err != nil {
    		t.Fatal(err)
    	}
    	res.Body.Close()
    	if closes != 1 {
    		t.Errorf("closes = %d; want 1", closes)
    	}
    }
    
    func TestTransportTLSHandshakeTimeout(t *testing.T) {
    	defer afterTest(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go

    	for _, s := range conn.channels {
    		s.Close()
    	}
    	var err error
    	if conn.ws != nil {
    		err = conn.ws.Close()
    	}
    	return err
    }
    
    // Close is only valid after Open has been called
    func (conn *Conn) Close() error {
    	<-conn.ready
    	return conn.closeNonThreadSafe()
    }
    
    // protocolSupportsStreamClose returns true if the passed protocol
    // supports the stream close signal (currently only V5 remotecommand);
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. src/mime/quotedprintable/writer.go

    	if n == len(p) {
    		return n, nil
    	}
    
    	if err := w.write(p[n:]); err != nil {
    		return n, err
    	}
    
    	return len(p), nil
    }
    
    // Close closes the [Writer], flushing any unwritten data to the underlying
    // [io.Writer], but does not close the underlying io.Writer.
    func (w *Writer) Close() error {
    	if err := w.checkLastByte(); err != nil {
    		return err
    	}
    
    	return w.flush()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

                @Throws(IOException::class)
                override fun close() {
                  closed.set(true)
                  super.close()
                }
              }.buffer()
            }
          }
        body.charStream().close()
        assertThat(closed.get()).isTrue()
      }
    
      @Test
      fun readerClosedAfterBomClosesUnderlyingSource() {
        val closed = AtomicBoolean()
        val body: ResponseBody =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. src/context/context.go

    // For example, if childContext is derived from parentContext:
    //   - if parentContext is canceled with cause1 before childContext is canceled with cause2,
    //     then Cause(parentContext) == Cause(childContext) == cause1
    //   - if childContext is canceled with cause2 before parentContext is canceled with cause1,
    //     then Cause(parentContext) == cause1 and Cause(childContext) == cause2
    type CancelCauseFunc func(cause error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    	mux    sync.RWMutex
    	client *clientv3.Client
    	closed bool
    }
    
    func (t *etcd3ProberMonitor) Close() error {
    	t.mux.Lock()
    	defer t.mux.Unlock()
    	if !t.closed {
    		t.closed = true
    		return t.client.Close()
    	}
    	return fmt.Errorf("closed")
    }
    
    func (t *etcd3ProberMonitor) Probe(ctx context.Context) error {
    	t.mux.RLock()
    	defer t.mux.RUnlock()
    	if t.closed {
    		return fmt.Errorf("closed")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top