当SignalR做8-10连接在同一时间在线聊天不起作用 [英] When SignalR made 8-10 connections at a time live chat doesn't work

查看:213
本文介绍了当SignalR做8-10连接在同一时间在线聊天不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的即时聊天使用SignalR。这是伟大的图书馆。但我应付了,我不能化解了一段时间的一个问题。所以,当signalR做8-10连接在同一时间在线聊天问题不能正常工作了。也许这是B / CI一切运行在本地计算机上?

I am developing live chat using SignalR. It is great library. But i coped with one problem that I cant resolve for some time. So problem in when signalR made 8-10 connections at a time live chat doesn't work any more. Maybe it is b/c i run everything on local machine?

我想,也许我什么地方出错了。所以,我发现最简单的聊天。您可以下载它这里 。  我在10个窗口中打开它,它不工作了。是signalR或程序员的错误,性能问题?我怎样才能使它工作得更快?

I thought maybe I made mistake somewhere. So I found simplest chat. You can download it here. I opened it in 10 windows and it dont work anymore. Is that performance issue of signalR or programmers mistake? How can i make it work faster?

此外,我发现 JabbR聊天。它有现场演示和它的作品了很多人。他们不做出任何特殊,它的工作很大。

Also I found JabbR chat . And it has live demo and it works for a lot of people. They dont make anything special and it work greatly.

有人可以帮助解决这个问题?

Can someone help with this issue?

任何帮助十分感谢, 迪马。

Great thanks for any help, Dima.

推荐答案

有,你可能已经遇到了两个问题:

There are two problems you might have ran into:

  1. 在IIS /卡西尼号在Windows 7有一个默认的10个并发连接的限制。尝试在运行Windows Server的测试,看看它的表现是一样的。
  2. 尝试在不同的浏览器窗口和/或单独的浏览器和/或机器,没有标签打开连接。我注意到,在0.4的东西可以使用标签时陷入困境。
  1. IIS/Cassini on Windows 7 has a default limit of 10 concurrent connections. Try running tests on Windows Server and see if it behaves the same.
  2. Try opening the connections in separate browser windows and/or separate browsers and/or machines, not tabs. I noticed that in 0.4 things can mess up when using tabs.

这篇关于当SignalR做8-10连接在同一时间在线聊天不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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