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
https://chronoxor.github.io/NetCoreServer
MIT License
2.63k stars 550 forks source link

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

Open lwf163 opened 8 months ago

lwf163 commented 8 months ago

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"

chronoxor commented 8 months ago

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