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

Session closed due to protocol error #778

Open
jaya460 opened this issue Feb 13, 2025 · 0 comments
Open

Session closed due to protocol error #778

jaya460 opened this issue Feb 13, 2025 · 0 comments
Assignees
Labels
2.0 SuperSocket 2.0 feature

Comments

@jaya460
Copy link

jaya460 commented Feb 13, 2025

Description
When sending data from an external system that exceeds the configured MaxRequestLength, the session is closed due to a protocol error. I need a way to handle this scenario gracefully, notify the client about the issue, and prevent the session from closing abruptly.

Expected Behavior
The server should handle oversized requests gracefully, notify the client about the issue, and prevent the session from closing abruptly.

Actual Behavior
The session is closed due to a protocol error when the data exceeds the MaxRequestLength.

we are using a custom implementation of the BeginEndMarkReceiveFilter from SuperSocket. Specifically, the class MLLPBeginEndMarkReceiveFilter extends BeginEndMarkReceiveFilter.

@kerryjiang kerryjiang self-assigned this Feb 26, 2025
@kerryjiang kerryjiang added 2.0 SuperSocket 2.0 feature labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 SuperSocket 2.0 feature
Projects
None yet
Development

No branches or pull requests

2 participants