chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution

Home Page:https://chronoxor.github.io/NetCoreServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lwf163 opened this issue · comments

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"

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