drwkqwa82140 2013-05-29 18:30 采纳率: 0%
浏览 72

长轮询服务器

From what I understand after the number of max connections is exhausted the server will stop responding which is likely to happen on a live server with long-polling requests on index, will this also happen in a Litespeed server? From what I understand it is superior to vanilla apache and it will not spawn a thread per request.

Sadly node.js isn't really an option, I am trying to pull the newest results for users realtime once per 1-2 minutes.

  • 写回答

2条回答 默认 最新

  • dongliang1941 2013-05-29 18:47
    关注

    it will happen on every server when You implement strict long-pooling

    please look on websockets as it's the best way of handling thousands of users simultaneously (from performance side of view)

    if You cannot use websockets try to implement reconnect as simple interval on which you abort current connection and establishing new one

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?