SignalR regular disconnection - signalr

Environment
.NET MVC5
IIS8.5 with websocket enabled
IE11
Windows 8.1
SignalR 2.2.0
Problem
I've been running SignalR web application for two months, and I noticed a regular socket disconnection. I checked the console logs thoroughly and the result was quite surprising for me.
SCRIPT12030: WebSocket Error: Network Error 12030
This happens regularly like below.
09 - 08:10:01
10 - 13:10:01
11 - 18:10:01
12 - 23:10:01
14 - 04:10:01
15 - 09:10:01
16 - 14:10:01
17 - 19:10:01
18 - 19:10:01
You can easily notice the 5 hours of interval and it happens only at 10:01. I already use reconnecting, disconnected, and reconnected callback to ensure the complete reconnection.
I have no special setting, just use default configuration. what could be the reason??

Related

SAP GUI 770 - WSAECONNRESET Timeout every 5 minutes

I'm recently installed a new instance of SAP GUI 770 on my server, but for some reason im getting error 10054 (WSAECONNRESET: Connection reset by peer). Symptom: Timeout on SAP GUI every 5 minutes without do anything on client.
Things that i've already do:
Increase/decrease of parameters -> rdisp/keepalive_timeout = 3600 and
rdisp/keepalive = 20
Put "true" on that -> enque/encni/set_so_keepalive
Set autologout to 0 -> rdisp/gui_auto_logout = 0
Disable Windows Firewall
Open port 3299 on my permiter firewall (corporate)
Best regards,
Will

adding a '\\server\printer' type printer after spooler service restart takes 45 seconds, every time

Adding a windows shared printer (like \\server\printer) after a spooler service restart (or computer reboot), takes about 45 seconds every single time. This is even after the driver is downloaded. Server is Windows 2016. Client can be Windows 7 or Windows 10. I've tried process monitor, but still can't figure it out. To reproduce:
# as admin (powershell)
restart-service spooler
# as regular user
date
add-printer -connectionname \\server\printer
date
Wednesday, May 2, 2018 10:39:08 AM
Wednesday, May 2, 2018 10:39:51 AM
It turns out the server print spooler service (spoolsv) uses rpc which listens on a dynamic port (49152-65535), and some kind of firewall was blocking it. After a timeout, printing will shift to port 135.

SignalR websocket fails with unexpected response code 502 (IIS 8.5 / ARR 3.0)

When trying to establish a web socked connection using SignalR I get an unexpected response error 502.
IE 10 reports:
'WebSocket Error: Incorrect HTTP response. Status code 502, Bad Gateway'
Chrome reports:
'WebSocket connection to 'wss://domain/root/signalr/connect?transport=webSockets&client....' failed: Error during WebSocket handshake: Unexpected response code: 502'
When I connect directly to the server, everything works as it should.
I have spend about 3-4 days now searching for how to get SignalR 2.2.1 working with an IIS 8.5, in Windows Server 2012 R2, ARR 3.0. I am using SSL/https, I have sticky sessions configured, same machine key on all my back end servers.
I have setup a test system, that has only a single server behind it, I have tried every suggestion that I can find but I still cant find a solution - or for that matter anyone indicating that they have successfully configured this even though Microsoft claim it is support "with no extra config".
Can anyone point me towards a guide or reference for getting this working ?
Can anyone confirm it even works - or that it does not work ?
After many many hours, I finally came across this old article about the "Response Buffer Threshold" in the Proxy settings for a server farm.
Setting this one value to 0 finally resolved the issues I had been having...
You can read find the article here http://matthewmanela.com/blog/using-signalr-in-an-arr-cluster.

Asterisk trunk, chrome 36, issue with WebRTC

I'm trying to get Asterisk yesterday's trunk and Chrome 36 via WebRTC. The websocket connection is established and the client registers correctly, but when I try to make a call from the browser, I get this message from Asterisk:
chan_sip.c:10535 process_sdp: Rejecting secure audio stream without encryption details: audio 35348 UDP/TLS/RTP/SAVPF 111 103 104 0 8 106 105 13 126
I have followed https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5 and https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial (although admittedly I'm not able to import in Chrome the .pem client certificate, but I'm not sure it's needed. I have imported the server certificate though)
I also tried with the 11.11.0 version but I'm getting the same result.
Help is appreciated!
have you tried using an older version of Chrome? We had everything working till we upgraded to Chrome 36. Peers succeded in registering and composing a call, but as soon as the other party answered, the call died.
After some research of which I unfortunately am not able to provide links, we realized that that Chrome update messed things up.
We are now compelled to use the version 34.0.1847.137m which works for us. Give it a try.

SignalR connections with IIS windows authentication stops working with more than 6 connections

Trying to connect to website from multiple windows and expecting the data refresh to happen
in all windows.
Hub connection with SignalR 2.0 version
MVC4 website
IIS 8.0 on windows 2012 server.
Chrome browser
When anonymous authentication is enabled, the multiple browser connections from same user to SignalR works fine. The moment anonymous authentication is disabled and windows authentication is enabled, the signalR limits only few connections from same browser and the data refresh stops working.
Can anyone help on this?
There is a limit on the amount can open concurrent connections for a browser
from here :
Max Number of default simultaneous persistent connections per server/proxy:
Firefox 2: 2
Firefox 3+: 6
Opera 9.26: 4
Opera 12: 6
Safari 3: 4
Safari 5: 6
IE 7: 2
IE 8: 6
IE 10: 8
Chrome: 6

Resources