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

Fix Bug: .NetFramework 4.8 ClientWebSocket Cann't Connect To .Net8 WsSession #278

Open
lwf163 opened this issue Dec 23, 2023 · 1 comment

Comments

@lwf163
Copy link

lwf163 commented Dec 23, 2023

I fix a bug is
161 Line, In WebSocket.cs File:
if ((string.Compare(value, "Upgrade", StringComparison.OrdinalIgnoreCase) != 0) && (string.Compare(value, "keep-alive, Upgrade", StringComparison.OrdinalIgnoreCase) != 0) && (string.Compare(value, "upgrade,keep-alive", StringComparison.OrdinalIgnoreCase) != 0))

because request header is "Connection=Upgrade,Keep-alive"

@lwf163 lwf163 changed the title Use .NetFramework 4.8 WsClient Cann't Connect To .Net8 WsServer Fix Bug: .NetFramework 4.8 ClientWebSocket Cann't Connect To .Net8 WsSession Dec 23, 2023
@chronoxor
Copy link
Owner

Thanks for reporting! Fixed in 8.0.6.0 - please check on your side

lukebakken pushed a commit to lukebakken/NetCoreServer that referenced this issue Feb 8, 2024
lukebakken pushed a commit to lukebakken/NetCoreServer that referenced this issue Feb 8, 2024
lukebakken pushed a commit to lukebakken/NetCoreServer that referenced this issue Feb 8, 2024
lukebakken pushed a commit to lukebakken/NetCoreServer that referenced this issue Feb 8, 2024
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