asp.net-iis7 并发请求
我正在使用 ASP.NET 和 IHttpHandler 模块开发 Rest Web 服务。默认情况下,不允许并发请求,在同一用户完成前一个请求之前,不会继续处理新请求。我想将同一用户的并发请求增加到三(3)。怎么做呢?可以从 web.config 文件进行控制吗?
I am developing Rest web service using ASP.NET and IHttpHandler module. By default concurrent requests is not allowed, new request is not proceeded until previous is finished from the same user. I would like to increase concurrent request for the same user to three(3). How to do that? Is that possible to control from web.config file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,ASP.NET 支持每个用户的并发请求。您只需禁用要允许并发请求的会话即可。
如果您在服务中使用会话,并且想要支持并发请求,则需要找出替代方案。
ASP.NET does, in fact, support concurrent requests per user. You just need to disable Sessions where you want to allow the concurrent requests.
If you use sessions in your services, you'll need to figure out an alternative if you want to support concurrent requests.