Skip to content

fix incorrect handling of overlong lines when allow-truncation is enabled#1766

Merged
slingamn merged 1 commit intoergochat:masterfrom
slingamn:allow_truncation
Aug 3, 2021
Merged

fix incorrect handling of overlong lines when allow-truncation is enabled#1766
slingamn merged 1 commit intoergochat:masterfrom
slingamn:allow_truncation

Conversation

@slingamn
Copy link
Copy Markdown
Member

@slingamn slingamn commented Aug 3, 2021

This is a bug in #1577 / 03185ea. The intent was that if allow-truncation was enabled, lines over 512 bytes would be processed in their truncated form. Instead, they were being rejected and the client was being disconnected. (We were hitting the else if err != nil case at the bottom of the conditional.)

@slingamn slingamn added the bug label Aug 3, 2021
@slingamn slingamn added this to the v2.8 milestone Aug 3, 2021
@slingamn
Copy link
Copy Markdown
Member Author

slingamn commented Aug 3, 2021

Reported by @tacerus

@slingamn slingamn merged commit 1389d89 into ergochat:master Aug 3, 2021
@slingamn slingamn deleted the allow_truncation branch November 29, 2021 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant