asp.net mvc 4 - Simulating signalR connection failure -


i have website hosted in iis 8.5. use signalr send , receive messages , browser. periodically (3 seconds) browser calls server method called ping() , receive response in browser in client method.

my server method this:

public void ping() {     clients.caller.sendack("ok"); } 

all working fine. testing purposes i'm simulating connection failure stopping website (not iis or application pool). strange website stopped, client method in browser called normally, when website runnig. , state of connection "connected" instead of disconnected.

in debbuging process tried change website port in iss. using port 80 , changed port 83. now, when stop website, server method isn't called , new state disconnected, expected.

so why port 80 has different behavior others? there issue/limitation known this?

more details:

  • the signalr connection use websockets;
  • iis , browser renning in same machine;
  • when stop application pool instead, connection lost expected;

i put more code don't think problem in code because when change port other 80 simulation works fine...


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -