Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for closeWrite (0.46 sec)

  1. src/net/http/h2_bundle.go

    		if clientGone {
    			// TODO: could we also get into this state if
    			// the peer does a half close
    			// (e.g. CloseWrite) because they're done
    			// sending frames but they're still wanting
    			// our open replies?  Investigate.
    			// TODO: add CloseWrite to crypto/tls.Conn first
    			// so we have a way to test this? I suppose
    			// just for testing we could have a non-TLS mode.
    			return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  2. internal/ringbuffer/ring_buffer.go

    // and always returns nil.
    func (r *RingBuffer) CloseWithError(err error) {
    	if err == nil {
    		err = io.EOF
    	}
    	r.setErr(err, false)
    }
    
    // CloseWriter closes the writer.
    // Reads will return any remaining bytes and io.EOF.
    func (r *RingBuffer) CloseWriter() {
    	r.setErr(io.EOF, false)
    }
    
    // Flush waits for the buffer to be empty and fully read.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. internal/ringbuffer/ring_buffer_test.go

    			}
    			if doSleep && writeRng.Intn(10) == 0 {
    				time.Sleep(time.Duration(writeRng.Intn(maxSleep)))
    			}
    		}
    		if err := rb.Flush(); err != nil {
    			t.Fatalf("flush failed: %v", err)
    		}
    		rb.CloseWriter()
    	}
    	wg.Wait()
    	if !errors.Is(readErr, io.EOF) {
    		t.Fatalf("expect io.EOF but got %v", readErr)
    	}
    	if readBytes != wroteBytes {
    		a, b := readBuf.Bytes(), wroteBuf.Bytes()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. api/go1.1.txt

    pkg net, method (*UDPConn) WriteMsgUDP([]uint8, []uint8, *UDPAddr) (int, int, error)
    pkg net, method (*UnixConn) CloseRead() error
    pkg net, method (*UnixConn) CloseWrite() error
    pkg net, type Dialer struct
    pkg net, type Dialer struct, Deadline time.Time
    pkg net, type Dialer struct, LocalAddr Addr
    pkg net, type Dialer struct, Timeout time.Duration
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top