cnken / substitutions4nginx

Automatically exported from code.google.com/p/substitutions4nginx
3 stars 3 forks source link

内容比较长时内容会被截断,开启gzip压缩输出时,内容输出不完整 #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
环境:

1. 下载最新substitutions4nginx 源码和 nginx 1.1.14 进行编译
2. 配置服务器启用gzip压缩和配置替换规则
3. 通过设置 proxy_set_header Accept-Encoding ""; 
屏蔽了源服务器gzip压缩。

问题:

1. 
如果关闭gzip压缩,则页面过长时只能获得部分内容(http抓包
),例如50%的内容,多刷新几次可以正常输出内容;
2. 
如果启用gzip压缩,则只能获得页面20%左右的内容输出(大规�
��截断);
3. 
屏蔽所有替换规则并开启gzip,则所有页面正常,可以断定是s
ubstitutions4nginx 问题。

Original issue reported on code.google.com by tion...@gmail.com on 8 Feb 2012 at 3:45

GoogleCodeExporter commented 9 years ago
启用gzip情况下错误日志:

2012/02/08 10:59:35 [alert] 14766#0: *515 deflate() failed: 2, -5 while sending 
to client, client: xxx.xxx.xxx.xx, server: xx.com, request: "GET /index 
HTTP/1.1", upstream: "http://192.168.2.1:80/", host: "xx.com"

Original comment by tion...@gmail.com on 8 Feb 2012 at 4:04

GoogleCodeExporter commented 9 years ago
可以看一下nginx的配置,还有提供一下需要替换的网页地址或
者内容吗?

Original comment by yaoweibin@gmail.com on 9 Feb 2012 at 7:08

GoogleCodeExporter commented 9 years ago
附件是我的配置文件

Original comment by tion...@gmail.com on 9 Feb 2012 at 8:04

Attachments:

GoogleCodeExporter commented 9 years ago
你好,我这边根据你的配置,不能重现这个bug,你能发一下de
bug日志吗?http://wiki.nginx.org/Debugging

非常感谢。

Original comment by yaoweibin@gmail.com on 9 Feb 2012 at 11:54