Coder Social home page Coder Social logo

Comments (7)

leszekm1 avatar leszekm1 commented on August 16, 2024

Even if you fix the Cookies not to be null it still does not work on Win7 since 1.0.9 was switched from using TCP socket implementation to using HttpClientHander which exposes a read/write stream on Windows 8+ and a read-only stream on Win7 and constructing a web socket on top that stream fails in Win7. You need to revert "WebSocketHandle.Managed.cs" to the June 30th implementation and then it will work on Win7 since it sits on top of TCP stack and not HTTP stack.

from system.net.websockets.client.managed.

leszekm1 avatar leszekm1 commented on August 16, 2024

I've looked into this a bit more. The previous version of "WebSockethandle.Managed.cs" had its own implementation of a bare bone HTTP stack (just enough to establish a web socket) on top of TCP. The current version was moved to be on top of HttpClientHander. From the README file of the corefx project:
"The shipping version of HttpClientHandler is a wrapper for WinHTTP on Windows and libcurl on Unix."
Well, the WinHTTP native stack in Win7 is not duplex and will never be able to support web sockets so the move to use HttpClientHandler permanently broke Win7 compatibility.

from system.net.websockets.client.managed.

leszekm1 avatar leszekm1 commented on August 16, 2024

For now I'm using 1.0.9 code base with the last available version of the "WebSocketHandle.Managed.cs" file that had its own HTTP stack. Since some of our clients are large corporations with domain join Win7 machines. Those corporations have firewalls with build-in web proxies that only allow authenticated domain users to go through and our socket.io based services live in the cloud. I'm currently adding proxy support and automatic proxy authentication based on the logged on user's credentials to that version of the file. If there is an interest I' will create a pull request to bring back Win7 compatibility and have proxy + automatic proxy auth support.

from system.net.websockets.client.managed.

techcap avatar techcap commented on August 16, 2024

Because of the problem of v1.0.9, I downgraded to v1.0.7 and now it's on test.
If you create PR for fixing the problem, it will be really great!!

from system.net.websockets.client.managed.

leszekm1 avatar leszekm1 commented on August 16, 2024

PR created.

from system.net.websockets.client.managed.

techcap avatar techcap commented on August 16, 2024

v1.0.12, released on nuget, still doesn't support win7.

from system.net.websockets.client.managed.

leszekm1 avatar leszekm1 commented on August 16, 2024

The PR hasn't been accepted yet, so there is no new nuget version that has win7 support.

from system.net.websockets.client.managed.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.