- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for maxMemory (0.16 sec)
-
src/net/textproto/reader.go
} // Skip initial spaces in value. value := string(bytes.TrimLeft(v, " \t")) vv := m[key] if vv == nil { maxMemory -= int64(len(key)) maxMemory -= mapEntryOverhead } maxMemory -= int64(len(value)) if maxMemory < 0 { return m, errMessageTooLarge } if vv == nil && len(strs) > 0 { // More than likely this will be a single-element key.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 22.1K bytes - Viewed (0) -
src/net/http/request_test.go
if err != nil { t.Fatal(err) } if hdr.Filename != "foobar.txt" { t.Errorf("expected only the last element of the path, got %q", hdr.Filename) } } // Issue #40430: Test that if maxMemory for ParseMultipartForm when combined with // the payload size and the internal leeway buffer size of 10MiB overflows, that we // correctly return an error. func TestMaxInt64ForMultipartFormMaxMemoryOverflow(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0)