Home > other >  OSError: [10042] WinError in getsockopt or setsockopt call specifies an unknown, an invalid or unsup
OSError: [10042] WinError in getsockopt or setsockopt call specifies an unknown, an invalid or unsup

Time:12-25

Daniel: meet a problem: calling this code
websocket client - this package also install
Create_connection (ws://"192.168.1.90:8000/websocket/")

the following mistakes
OSError: [10042] WinError in getsockopt or setsockopt call specifies an unknown, an invalid or unsupported options or level


Description:

Above win10 can run normally, on win2008 server is no.

CodePudding user response:

You try to he commented

CodePudding user response:

Comment out code is not an error.

CodePudding user response:

The corresponding library can't support the server operating system

CodePudding user response:

reference oyljerry reply: 3/f
corresponding library can't support the server operating system


Hello handsome boy, this websokcet: are there any other framework?

CodePudding user response:

The original poster commented out code okay?

CodePudding user response:

Here the option TCP_KEEPCNT is added to a default list of options, but it 's not supported on Windows:

Websocket client/websocket/_socket py

The Line 38 in 430 d1dc

DEFAULT_SOCKET_OPTION. Append ((socket. SOL_TCP, socket TCP_KEEPCNT, 3))

CodePudding user response:

Comment out _socket. Py about TCP_KEEPCNT in this line, can kiss test!
  • Related