Skip to content

Commit f36dee2

Browse files
authored
increase max uri length to 8k to match the limit documented on https://docs.fastly.com/en/guides/resource-limits (#71)
At time of writing, the maximum uri allowed on fastly is 8kb
1 parent a5ebea9 commit f36dee2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

c-dependencies/js-compute-runtime/js-compute-builtins.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ inline bool ReturnPromiseRejectedWithPendingError(JSContext* cx, const JS::CallA
243243
return true;
244244
}
245245

246-
#define HANDLE_READ_CHUNK_SIZE 1024
246+
#define HANDLE_READ_CHUNK_SIZE 8192
247247

248248
template<auto op, class HandleType>
249249
static char* read_from_handle_all(JSContext* cx, HandleType handle,

c-dependencies/xqd.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern "C" {
1515
//max header size to match vcl
1616
#define HEADER_MAX_LEN 69000
1717
#define METHOD_MAX_LEN 1024
18-
#define URI_MAX_LEN 4096
18+
#define URI_MAX_LEN 8192
1919
#define DICTIONARY_ENTRY_MAX_LEN 8000
2020

2121
// TODO ACF 2020-01-17: these aren't very C-friendly names

0 commit comments

Comments
 (0)