- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for maxMemory (0.5 sec)
-
src/net/http/request.go
} else { copyValues(r.Form, newValues) } } return err } // ParseMultipartForm parses a request body as multipart/form-data. // The whole request body is parsed and up to a total of maxMemory bytes of // its file parts are stored in memory, with the remainder stored on // disk in temporary files. // ParseMultipartForm calls [Request.ParseForm] if necessary.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 49.4K 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) -
src/net/http/serve_test.go
t.Skip("https://go.dev/issue/20253") } const maxMemory = 1024 const key = "file" if runtime.GOOS == "windows" { // Windows sometimes refuses to remove a file that was just closed. t.Skip("https://go.dev/issue/25965") } cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { r.ParseMultipartForm(maxMemory) f, _, err := r.FormFile(key) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/LowMemoryDaemonExpirationStrategyTest.groovy
private static final long MAX_MEMORY = 16 * ONE_GIG private final OsMemoryStatus mockMemoryStatus = Mock(OsMemoryStatus) def "minimum threshold is enforced"() { given: def expirationStrategy = new LowMemoryDaemonExpirationStrategy(0) when: 1 * mockMemoryStatus.physicalMemory >> { new DefaultAvailableOsMemoryStatusAspect("physical", MAX_MEMORY, ONE_GIG) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/windows/platform-windows.c
#include "platform.h" const char* platform_name = "Windows"; int max_path_length() { return 260; } // 640K ought to be enough for anybody. unsigned long long max_memory() { return KB(640); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 229 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/headers/platform.h
#ifndef PLATFORM_H #define PLATFORM_H extern const char* platform_name; int max_path_length(); unsigned long long max_memory(); int is_posix_like(); #define KB(x) x #define MB(x) KB(x)*1024 #define GB(x) MB(x)*1024 #define TB(x) GB(x)*1024
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 267 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/linux/platform-linux.c
#include "platform.h" const char* platform_name = "Linux"; int max_path_length() { return -1; } unsigned long long max_memory() { return TB(128); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 186 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/mac/platform-mac.c
#include "platform.h" const char* platform_name = "MacOSX"; int max_path_length() { return 1024; } unsigned long long max_memory() { return GB(96); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 188 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/c/main.c
printf("Is Posix like? %s\n", is_posix_like()?"true":"false"); printf("Max Path Length: %d bytes\n", max_path_length()); printf("Max memory supported: %llu Kbytes\n", max_memory()); return 0;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 348 bytes - Viewed (0) -
src/runtime/malloc.go
} l.next, l.mapped = base, base l.end = base + size l.mapMemory = mapMemory } func (l *linearAlloc) alloc(size, align uintptr, sysStat *sysMemStat) unsafe.Pointer { p := alignUp(l.next, align) if p+size > l.end { return nil } l.next = p + size if pEnd := alignUp(l.next-1, physPageSize); pEnd > l.mapped { if l.mapMemory { // Transition from Reserved to Prepared to Ready.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 59.6K bytes - Viewed (0)