Skip to content

Grow the receive buffer from 1k to 16k to accomodate max ssl packet size#2727

Merged
ctrlaltca merged 1 commit intokvirc:masterfrom
ctrlaltca:fix_2691
Nov 10, 2025
Merged

Grow the receive buffer from 1k to 16k to accomodate max ssl packet size#2727
ctrlaltca merged 1 commit intokvirc:masterfrom
ctrlaltca:fix_2691

Conversation

@ctrlaltca
Copy link
Contributor

Historically irc messages were limited in size of 512 bytes, so the 1kb buffer ought to be enough for anybody (semi-cit).
When reading from an SSL buffer, the max record size is 16kb (source: https://docs.openssl.org/master/man3/SSL_read/#notes), so our buffer should be large enough to get the whole record in one single read and avoid missed reads.
fix #2691

@ctrlaltca ctrlaltca merged commit 67e62d5 into kvirc:master Nov 10, 2025
5 checks passed
@ctrlaltca ctrlaltca deleted the fix_2691 branch November 10, 2025 14:04
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.

KVIrc 5.2.6/MacOS - Snotices "lag" when connecting with SSL

1 participant