我怎么配置的Apache2允许来自同一个IP地址的多个并发连接? [英] How do I configure Apache2 to allow multiple simultaneous connections from same IP address?

查看:311
本文介绍了我怎么配置的Apache2允许来自同一个IP地址的多个并发连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在默认情况下,的Apache2似乎​​让每个IP地址只有1个连接。

By default, Apache2 seems to allow only 1 connection per IP address.

我如何配置的Apache2,允许来自同一IP地址的多个并发连接?

How do I configure Apache2 to allow multiple simultaneous connections from the same IP address?

下面是我的情况:


  1. 的web应用程序被托管的服务器上。

  2. 远程客户端发出,可能需要15秒才能完成要求。

  3. 相同的远程客户端发出另一个(独立的)要求。

  4. 在present,第二个请求,坐落在一个队列中,直到第一个请求完成后,
    因为看起来Apache2的征收每个IP地址的1个连接的限制。

我如何重写此默认行为,并允许第二个请求并行处理?

How do I override this default behaviour and allow the 2nd request to be processed in parallel?

在此先感谢,
  大卫·琼斯

thanks in advance, David Jones

推荐答案

我发现回答我的问题。事实证明,别人都遇到过这样的困难面前:

I discovered the answer to my problem. It turns out others have encountered this difficulty before:

同时请求到PHP脚本

关键细节是在PHP的原因是基于文件的会话来自同一客户端的所有请求依次处理队列中,而不是并行的。

The key detail is that file-based sessions in PHP cause all requests from the same client to be processed sequentially in a queue, rather than in parallel.

为了解决这个问题,有必要作出 session_write_close ()在每一个PHP脚本,只要会话处理完毕。

In order to solve this problem, it is necessary to make a call to session_write_close() in every PHP script as soon as session handling is finished.

- 大卫·琼斯

这篇关于我怎么配置的Apache2允许来自同一个IP地址的多个并发连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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