Skip to content

Conversation

slabko
Copy link
Contributor

@slabko slabko commented Oct 20, 2025

The ring buffer used to check for ClickHouse exceptions, implemented in contrib/poco/Net/src/HTTPChunkedStream.cpp, has a size of 32 KB. In case of an abrupt connection close without properly ending the chunked encoded stream, HTTPChunkedStream searches the last 32 KB for exceptions. However, this is not very effective if the AmortizedIStreamReader prefetches only 8 KB of data. This change increases the prefetch size to 32 KB.

The ring buffer used to check for ClickHouse exceptions, implemented in
contrib/poco/Net/src/HTTPChunkedStream.cpp, has a size of 32 KB.
In case of an abrupt connection close without properly ending the chunked
encoded stream, the ring buffer searches the last 32 KB for exceptions.
However, this is not very effective if the AmortizedIStreamReader prefetches
only 8 KB of data. This change increases the prefetch size to 32 KB.
Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🤙

💡 To request another review, post a new comment with "/windsurf-review".

@slabko slabko merged commit ae803bf into beta-1.4.4 Oct 21, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant