Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for bufr (0.06 sec)

  1. src/net/http/server.go

    func (c *conn) finalFlush() {
    	if c.bufr != nil {
    		// Steal the bufio.Reader (~4KB worth of memory) and its associated
    		// reader for a future connection.
    		putBufioReader(c.bufr)
    		c.bufr = nil
    	}
    
    	if c.bufw != nil {
    		c.bufw.Flush()
    		// Steal the bufio.Writer (~4KB worth of memory) and its associated
    		// writer for a future connection.
    		putBufioWriter(c.bufw)
    		c.bufw = nil
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    			bufrw.Write([]byte("[hijack-to-bufw]"))
    			bufrw.Flush()
    			conn.Write([]byte("[hijack-to-conn]"))
    			conn.Close()
    			wrotec <- true
    		}()
    	})
    	ln := &oneConnListener{conn: conn}
    	go Serve(ln, handler)
    	<-conn.closec
    	<-wrotec
    	if g, w := buf.String(), "[hijack-to-bufw][hijack-to-conn]"; g != w {
    		t.Errorf("wrote %q; want %q", g, w)
    	}
    }
    
    func TestDoubleHijack(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    }
    
    func FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) {
    	var _p0 *uint16
    	if len(buf) > 0 {
    		_p0 = &buf[0]
    	}
    	r0, _, e1 := syscall.Syscall9(procFormatMessageW.Addr(), 7, uintptr(flags), uintptr(msgsrc), uintptr(msgid), uintptr(langid), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(args)), 0, 0)
    	n = uint32(r0)
    	if n == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
Back to top