Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newHTTPStats (0.05 sec)

  1. cmd/http-tracer_test.go

    // This test specifically addresses the race between:
    // - Write operations via updateStats.
    // - Read operations via toServerHTTPStats(false).
    func TestRaulStatsRaceCondition(t *testing.T) {
    	httpStats := newHTTPStats()
    	// Simulate the concurrent scenario from the original race condition:
    	// Multiple HTTP request handlers updating stats concurrently,
    	// while background processes are reading the stats for persistence.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. cmd/globals.go

    	// The global drive config
    	globalDriveConfig drive.Config
    
    	// Global server's network statistics
    	globalConnStats = newConnStats()
    
    	// Global HTTP request statistics
    	globalHTTPStats = newHTTPStats()
    
    	// Global bucket network and API statistics
    	globalBucketConnStats = newBucketConnStats()
    	globalBucketHTTPStats = newBucketHTTPStats()
    
    	// Time when the server is started
    	globalBootTime = UTCNow()
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 16.2K bytes
    - Viewed (1)
  3. cmd/http-stats.go

    		if code >= http.StatusInternalServerError {
    			st.totalS35xxErrors.Inc(api)
    		} else {
    			st.totalS34xxErrors.Inc(api)
    		}
    	}
    }
    
    // Prepare new HTTPStats structure
    func newHTTPStats() *HTTPStats {
    	return &HTTPStats{}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top