Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messages cropped at 4096 bytes #261

Open
mnegovanovic opened this issue Sep 14, 2024 · 4 comments
Open

messages cropped at 4096 bytes #261

mnegovanovic opened this issue Sep 14, 2024 · 4 comments

Comments

@mnegovanovic
Copy link

Hi,

as titile says ... i am testing my websocket server with pasting large "Lorem ipsum" text in the terminal on macosx and linux. Message on both gets cropped and my server is extracting payload_len=4096 for incoming WSText message.

Any suggestions what might be misconfigured? (Ive already played around with rmem and wmem socket settings with no joy)

Regards
Milos

@mnegovanovic
Copy link
Author

mnegovanovic commented Sep 14, 2024

Same outcome when i use test server:

[tt@arch ~]$ websocat -B 10485760 wss://ws.vi-server.org/mirror > log
... large Lorem Ipsum ...
[tt@arch ~]$ wc -c log 
4096 log

Regards

@mnegovanovic
Copy link
Author

Further more ... when using wscat I am able to send more than 4096 bytes. So its not issue with my server.

Regards

@vi
Copy link
Owner

vi commented Sep 14, 2024

Maybe it's just a default kernel line buffer limit?

Does running cat > test.txt, pasting the text, then ending it with Ctrl+D produces normal or trimmed file?

@mnegovanovic
Copy link
Author

[tt@arch ~]$ wc -c test.txt
4096 test.txt

Regards

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

No branches or pull requests

2 participants