I've implemented an chat in our website with SignalR. On local IIS, all is ok. I've installed it on server in datacenter and with IE, it's not running well. Starting of hub is ok, messages from client to server are ok(I write Logs to Filesystem) but no messages
from server on clients. When I use Chrome, all is ok.
PROTOKOLL: [00:05:15 UTC+0100] SignalR: Negotiating with '/test/signalr/negotiate'.
PROTOKOLL: [00:05:15 UTC+0100] SignalR: This browser doesn't support SSE.
PROTOKOLL: [00:05:15 UTC+0100] SignalR: SignalR: Initializing long polling connection with server.
PROTOKOLL: [00:05:16 UTC+0100] SignalR: Attempting to connect to 'https://www.MyDomain.ch/test/signalr/connect?transport=longPolling&connectionId=1ab40e12-461b-487d-9e38-5018214d208f&connectionData=%5B%7B%22name%22%3A%22mychathub%22%7D%5D&tid=7' using longPolling.
PROTOKOLL: [00:05:16 UTC+0100] SignalR: Longpolling connected
In IE, the site has to run in Quirks mode but this is in local installation which is ok.
It's likely that IE could be caching the long polling requests (which would explain why you aren't recieving any of the client messages). You could probably simply add this to avoid the caching calls :
chmav
Member
10 Points
12 Posts
Problem on productive Server with IE
Feb 12, 2013 10:14 PM|LINK
Hi
I've implemented an chat in our website with SignalR. On local IIS, all is ok. I've installed it on server in datacenter and with IE, it's not running well. Starting of hub is ok, messages from client to server are ok(I write Logs to Filesystem) but no messages from server on clients. When I use Chrome, all is ok.
PROTOKOLL: [00:05:15 UTC+0100] SignalR: Negotiating with '/test/signalr/negotiate'.
PROTOKOLL: [00:05:15 UTC+0100] SignalR: This browser doesn't support SSE.
PROTOKOLL: [00:05:15 UTC+0100] SignalR: SignalR: Initializing long polling connection with server.
PROTOKOLL: [00:05:16 UTC+0100] SignalR: Attempting to connect to 'https://www.MyDomain.ch/test/signalr/connect?transport=longPolling&connectionId=1ab40e12-461b-487d-9e38-5018214d208f&connectionData=%5B%7B%22name%22%3A%22mychathub%22%7D%5D&tid=7' using longPolling.
PROTOKOLL: [00:05:16 UTC+0100] SignalR: Longpolling connected
In IE, the site has to run in Quirks mode but this is in local installation which is ok.
best regards
Christoph
Rion William...
All-Star
26359 Points
4374 Posts
Re: Problem on productive Server with IE
Feb 13, 2013 12:02 PM|LINK
It's likely that IE could be caching the long polling requests (which would explain why you aren't recieving any of the client messages). You could probably simply add this to avoid the caching calls :
$(function () { $.ajaxSetup({ cache: false }); });Depending on your implementation, you could also consider adding a Cache-Control: no-cache header to your response :
or apply a timestamp within each of your requests manually (as cache : false should handle this automatically).
chmav
Member
10 Points
12 Posts
Re: Problem on productive Server with IE
Feb 13, 2013 06:55 PM|LINK
I've added this chache:false but problem is still existing.
Cache-Control of the aspx-Page is alreade with no cache.
Here the log after refresh auf my page in IE:
https://dl.dropbox.com/u/3565205/SignalR_Log.jpg
chmav
Member
10 Points
12 Posts
Re: Problem on productive Server with IE
Feb 14, 2013 05:33 AM|LINK
I've done some more tests and added timestamp, contextID and send to all(not only to group)
Some message are received directly, then now messages are added and suddenly old messages are displayed
New messages are added at bottom.
https://dl.dropbox.com/u/3565205/SignalR_messages.jpg
After the first messages at 21:39:01 it's ok. and then old messages are received at js and added to the ul-Element
chmav
Member
10 Points
12 Posts
Re: Problem on productive Server with IE
Mar 09, 2013 09:21 PM|LINK
Hi
I've solved the problem. The application pool had the value 2 at maxProcesses(WebGarden) and after I set it to 1(no webgarden), it's ok.
I'll test, if it's for the rest auf the application ok, when webgarden is not active.
Best regards
Christoph