DreamHost 上的 Comet 和长轮询请求?
是否有任何解决方案可以在 DreamHost 或其他我无权调整 apache 的共享托管环境上运行此类操作?
Is there any solution for running these kind of operations on DreamHost or other shared hosting environments where I don't have access to tweak apache?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然可以,但只要 Apache HTTP 服务器不提供非阻塞 IO 功能(并且每个轮询连接都有一个与其关联的服务器线程),您就会很快耗尽内存(在 2-3k 个连接之后) ).
如果您指的是 Apache Tomcat,NIO 默认情况下处于关闭状态,您需要有权访问配置文件才能更改此设置。
You certainly can, but as long as Apache HTTP server doesn't provide non-blocking IO capabilities (and each polling connection has a server thread associated to it), you'll be running out of memory very fast (after 2-3k connections).
If you meant Apache Tomcat, NIO is turned off by default, and you need to have access to configuration files in order to change this.