Skip to content

Commit b214731

Browse files
authored
updating header to match vcl max header length (#58)
1 parent c2dfc7f commit b214731

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ bool enqueue_internal_method(JSContext* cx, HandleObject receiver,
9191
}
9292

9393
// Ensure that all the things we want to use the hostcall buffer for actually fit into the buffer.
94-
#define HOSTCALL_BUFFER_LEN DICTIONARY_ENTRY_MAX_LEN
95-
static_assert(HEADER_MAX_LEN < HOSTCALL_BUFFER_LEN);
94+
#define HOSTCALL_BUFFER_LEN HEADER_MAX_LEN
95+
static_assert(DICTIONARY_ENTRY_MAX_LEN < HOSTCALL_BUFFER_LEN);
9696
static_assert(METHOD_MAX_LEN < HOSTCALL_BUFFER_LEN);
9797
static_assert(URI_MAX_LEN < HOSTCALL_BUFFER_LEN);
9898

c-dependencies/xqd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ extern "C" {
1212

1313
#define XQD_ABI_VERSION 0x01ULL
1414

15-
#define HEADER_MAX_LEN 4096
15+
//max header size to match vcl
16+
#define HEADER_MAX_LEN 69000
1617
#define METHOD_MAX_LEN 1024
1718
#define URI_MAX_LEN 4096
1819
#define DICTIONARY_ENTRY_MAX_LEN 8000

0 commit comments

Comments
 (0)