Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Accent (0.21 sec)

  1. internal/http/listener.go

    	handleListener := func(idx int, listener net.Listener) {
    		for {
    			conn, err := listener.Accept()
    			send(acceptResult{conn, err, idx})
    		}
    	}
    
    	// Start separate goroutine for each TCP listener to handle connection.
    	for idx, tcpListener := range listener.listeners {
    		go handleListener(idx, tcpListener)
    	}
    }
    
    // Accept - reads from httpListener.acceptCh for one of previously accepted TCP connection and returns the same.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/bufio/example_test.go

    		fmt.Println(scanner.Text()) // Println will add back the final '\n'
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading standard input:", err)
    	}
    }
    
    // Return the most recent call to Scan as a []byte.
    func ExampleScanner_Bytes() {
    	scanner := bufio.NewScanner(strings.NewReader("gopher"))
    	for scanner.Scan() {
    		fmt.Println(len(scanner.Bytes()) == 6)
    	}
    	if err := scanner.Err(); err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. internal/grid/stream.go

    	Requests chan<- []byte
    
    	muxID uint64
    	ctx   context.Context
    }
    
    // Send a payload to the remote server.
    func (s *Stream) Send(b []byte) error {
    	if s.Requests == nil {
    		return errors.New("stream does not accept requests")
    	}
    	select {
    	case s.Requests <- b:
    		return nil
    	case <-s.ctx.Done():
    		return context.Cause(s.ctx)
    	}
    }
    
    // Results returns the results from the remote server one by one.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 18:05:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/lex/lex.go

    // Tokens; original spacing is lost but we don't need it.
    type TokenReader interface {
    	// Next returns the next token.
    	Next() ScanToken
    	// The following methods all refer to the most recent token returned by Next.
    	// Text returns the original string representation of the token.
    	Text() string
    	// File reports the source file name of the token.
    	File() string
    	// Base reports the position base of the token.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. internal/http/transports.go

    	// 		// if a response to Ping is not received.
    	// 		trhttp2.PingTimeout = dialTimeout
    	// 		// DisableCompression, if true, prevents the Transport from
    	// 		// requesting compression with an "Accept-Encoding: gzip"
    	// 		trhttp2.DisableCompression = true
    	// 	}
    	// }
    
    	return tr
    }
    
    // NewInternodeHTTPTransport returns transport for internode MinIO connections.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. internal/event/targetlist.go

    		list.eventsSkipped.Add(int64(len(list.queue)))
    		return
    	default:
    		list.eventsSkipped.Add(1)
    		err := fmt.Errorf("concurrent target notifications exceeded %d, configured notification target is too slow to accept events for the incoming request rate", maxConcurrentAsyncSend)
    		for id := range targetIDset {
    			reqInfo := &logger.ReqInfo{}
    			reqInfo.AppendTags("targetID", id.String())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  7. internal/config/errors.go

    	ErrInvalidBrowserValue = newErrFn(
    		"Invalid console value",
    		"Please check the passed value",
    		"Environment can only accept `on` and `off` values. To disable Console access, set this value to `off`",
    	)
    
    	ErrInvalidFSOSyncValue = newErrFn(
    		"Invalid O_SYNC value",
    		"Please check the passed value",
    		"Can only accept `on` and `off` values. To enable O_SYNC for fs backend, set this value to `on`",
    	)
    
    	ErrOverlappingDomainValue = newErrFn(
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 18 22:25:32 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. cmd/streaming-signature-v4_test.go

    		{"000000000000bogus", 0, "invalid byte in chunk length"},
    		{"00000000000000000", 0, "http chunk length too large"}, // could accept if we wanted
    		{"10000000000000000", 0, "http chunk length too large"},
    		{"00000000000000001", 0, "http chunk length too large"}, // could accept if we wanted
    	}
    	for i := uint64(0); i <= 1234; i++ {
    		tests = append(tests, testCase{in: fmt.Sprintf("%x", i), want: i})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  9. internal/deadlineconn/deadlineconn_test.go

    		t.Fatalf("failed to assert to net.TCPListener")
    	}
    
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    
    		tcpConn, terr := tcpListener.AcceptTCP()
    		if terr != nil {
    			t.Errorf("failed to accept new connection. %v", terr)
    			return
    		}
    		deadlineconn := New(tcpConn)
    		deadlineconn.WithReadDeadline(time.Second)
    		deadlineconn.WithWriteDeadline(time.Second)
    		defer deadlineconn.Close()
    
    		// Read a line
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Nov 05 18:09:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  10. cmd/warm-backend-gcs.go

    	// GCS storage decompresses a gzipped object by default and returns the data.
    	// Refer to https://cloud.google.com/storage/docs/transcoding#decompressive_transcoding
    	// Need to set `Accept-Encoding` header to `gzip` when issuing a GetObject call, to be able
    	// to download the object in compressed state.
    	// Calling ReadCompressed with true accomplishes that.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top