mirror of
https://github.com/kerberos-io/agent.git
synced 2025-11-03 10:40:52 +08:00
Merge pull request #207 from kerberos-io/feature/increase-chunk-size
feature/increase-chunk-size
This commit is contained in:
@@ -737,7 +737,7 @@ func HandleLiveStreamSD(livestreamCursor *packets.QueueCursor, configuration *mo
|
|||||||
// To avoid base64 encoding, just send the raw []byte chunks as you do here.
|
// To avoid base64 encoding, just send the raw []byte chunks as you do here.
|
||||||
// If you want to avoid base64, make sure the receiver can handle binary payloads.
|
// If you want to avoid base64, make sure the receiver can handle binary payloads.
|
||||||
|
|
||||||
chunkSize := 2 * 1024 // 2KB chunks
|
chunkSize := 25 * 1024 // 25KB chunks
|
||||||
var chunks [][]byte
|
var chunks [][]byte
|
||||||
for i := 0; i < len(bytes); i += chunkSize {
|
for i := 0; i < len(bytes); i += chunkSize {
|
||||||
end := i + chunkSize
|
end := i + chunkSize
|
||||||
|
|||||||
Reference in New Issue
Block a user