PDA

View Full Version : Shadowsock fix PR_END_OF_FILE_ERROR - System.Net.Sockets.SocketException (0x80004005)



Fli
09-07-2020, 11:35 AM
Firefox was reporting secure connection error: PR_END_OF_FILE_ERROR

I was using Shadowsocks application on Windows for the connections and this app shown following errors in its log file (SS client > Help > Show logs) once i attempted to connect some site:


System.Net.Sockets.SocketException (0x80004005): Operace, o níž jste se pokusili, není podporována pro tento typ odkazovaného objektu
v System.Net.Sockets.Socket.ConnectAsync(SocketAsync EventArgs e)
v System.Net.Sockets.Socket.ConnectAsync(SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e)
v Shadowsocks.Util.Sockets.WrappedSocket.BeginConnec t(EndPoint remoteEP, AsyncCallback callback, Object state)
v Shadowsocks.Proxy.DirectConnect.BeginConnectDest(E ndPoint destEndPoint, AsyncCallback callback, Object state)
v Shadowsocks.Controller.TCPHandler.ProxyConnectCall back(IAsyncResult ar)

The fix was to quit SS client, click windows button in bottom bar, type "cmd" right click the found Command line entry and select to open it with admin rights. Paste and execute following commands one by one:


netsh interface ipv4 reset
netsh interface ipv6 reset
netsh interface tcp reset
netsh winsock reset

Start Shadowsocks client app.
I was warned i must reboot, but shadowsocks started working right away.