Signalr总是会在生产服务器中进行长时间轮询 [英] Signalr always falls to long polling in the production server

查看:54
本文介绍了Signalr总是会在生产服务器中进行长时间轮询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将应用程序托管在服务器中时,它将检查服务器端事件,并始终退回到长时间轮询.服务器托管环境是Windows Server 2012 R1和IIS 7.5

When i host the application in the server it checks for the server side events and falls back to long polling always. The server hosting environment is Windows Server 2012 R1 and IIS 7.5

反正我们能解决这个问题吗?

Is there anyway if we can solve this issue?

https://cloud.githubusercontent.com/assets/9750273/5050991/2f4cb262-6c59-11e4-9e35-db06b432d470.png

IE10,Chrome 38.0.2125.111和Firefox ..在我正在进行长时间轮询的所有3种浏览器中,服务器发送的事件被取消.据我了解,他们中很少有人告诉服务器是否在代理服务器和防火墙之后,那么服务器发送的事件可能无法正常工作.由于该站点位于生产服务器中,因此我无法对其进行任何控制.

IE10, Chrome 38.0.2125.111 and Firefox.. In all the 3 browsers i am getting long polling, server sent events is cancelled. As i understand few of them had told if the server is behind a proxy and firewall then server sent events may not work. Since the site is in production server i do not have any control on it.

导致此问题的可能性有哪些?怎么调试一样的?

What are the possibilities to cause this issue? How to debug the same?

推荐答案

如果要在IIS中支持WebSocket,则应启用WebSocket

You should enable WebSocket if you want support for it in IIS

以下是您需要启用以使其正常工作的角色/功能的屏幕截图:

Here's a screenshot of the Role/Feature you need to enable to make it work:

希望对您有所帮助!:)

I hope that helps you! :)

这篇关于Signalr总是会在生产服务器中进行长时间轮询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆