Skip to content

Commit 33a5bc1

Browse files
Merge pull request #12 from atlassian/BIF-1804
Increase payload size limit of callbacks to 16 kB
2 parents 2e94053 + 1458884 commit 33a5bc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runbook/callback_context_handler_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type CallbackContextHandlerUnix struct {
2020
func NewCallbackContextHandler(executionId string) *CallbackContextHandlerUnix {
2121
return &CallbackContextHandlerUnix{
2222
pipePath: filepath.Join("/var", "tmp", "jec", `jecCallbackPipe-`+executionId),
23-
callbackContextBuffer: make([]byte, 4096),
23+
callbackContextBuffer: make([]byte, 16384), // 16 kB
2424
pipeOpenedByScript: false,
2525
}
2626
}

runbook/callback_context_handler_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type CallbackContextHandlerWindows struct {
1919
func NewCallbackContextHandler(executionId string) *CallbackContextHandlerWindows {
2020
return &CallbackContextHandlerWindows{
2121
pipePath: `\\.\pipe\jecCallbackPipe-` + executionId,
22-
callbackContextBuffer: make([]byte, 4096),
22+
callbackContextBuffer: make([]byte, 16384), // 16kB
2323
pipeOpenedByScript: false,
2424
}
2525
}

0 commit comments

Comments
 (0)