2010年5月19日星期三

[GFW BLOG] Gappproxy2 正式发布 (2010.5.20 Bug Fix 及测试版)

作者:fcicq   来源:http://www.fcicq.net/wp/?p=881

版权声明: 允许非商业性转载,但转载时必须标明原作者 fcicq、原始链接 http://www.fcicq.net/wp/?p=881 及本声明。

Gappproxy2 是 Gappproxy 的一个分支版本. 作者 fcicq.
代码授权与 Gappproxy 相同, 均为 GPLv3. 感谢原作者 XiaoGang.

第一版本 0.99, 代码来自 gappproxy svn r102.

gappproxy2 的服务器端 fetch.py 与原 gappproxy 不兼容.

gappproxy2 不附带 app.yaml 及 ssl/LocalProxyServer.cert, ssl/LocalProxyServer.key 文件. 有需要者请自己动手.

没有 Win32 可执行文件版本.

最简单的自签名证书生成方法:
openssl req -x509 -days 365 -newkey rsa:1024 -keyout LocalProxyServer.key -nodes -out LocalProxyServer.cert

去看看 FAQ 吧: Gappproxy2 FAQ

下载地址及 sha1sum, 2010.5.20 更新
bfd8957f64140c63570a4ba99d06677b25194638 gappproxy2.tar.gz
安装方法和 gappproxy 一样, 如果你有准备好的 GAE app 的话, 替换 fetch.py 并更换新客户端即可.

测试版本, 测试另一种修复 206 断点续传的方法, 修正 HEAD 请求处理问题. 请升级客户端并部署新的 fetch.py.
18508d40462b5b41c74684bac14050b569d0d3c1 gappproxy2-0.99.2.tar.gz

报告成功/问题, 请丢邮件到 fcicq at fcicq dot nospam dot net
(小声说: 在推上 @fcicq 也可以, 应该能看见.)

Have Fun :)

# Changelog:
修改记录

# Removed logging
关闭 logging 功能.

# Dropped support of google_proxy & load_balancing. Merged common.py to proxy.py.
去掉了 google_proxy 和 load_balancing 功能. 去掉了 common.py 并合并到 proxy.py.

# Disable SSL Support by default (client)
客户端默认屏蔽 HTTPS 代理能力. 可在 proxy.conf 中重新打开. (ssl_disabled=false)

(加注: 该屏蔽不影响 fetch_server 设置为 https://fetch-server-uri.)

Gappproxy FAQ 片断:
为支持 HTTPS, GAppProxy 使用了一种妥协的方式, 该方式从原理上破坏了 HTTPS 固有的安全性, 将 HTTPS 的安全级别降到了 HTTP 级, 所以如果你要传输重要数据, 请不要使用该 HTTPS 代理. 此外 HTTPS 不支持服务器 / 客户认证, 这也和 GAE 有关.

# Block non localhost access by default (client)
客户端默认屏蔽非本地用户访问. 可在 proxy.conf 中重新打开. (localhost_only=false)

# Added Caching to some Mines-types, with 200, 304, 404 support. Saves some bandwidth :)
# You can use status page or HTTP Header (x-hit) to make sure cache is working
对部分 mine 类型使用 memcache 缓存, 对 if-modified-since 请求能够返回 HTTP 304. 一般缓存支持 HTTP 200, 404. 默认超时时间是 6 小时.
缓存命中时会返回 HTTP Header x-hit. 有屏蔽缓存的判断.

# Added more forbid_headers.
部分 http headers 被加入过滤表, 不会发送到目标服务器.

# Try to fetch 2 times for GET / HEAD request.
# Fixed a bug that POST request more than once, and make the timeout of post requests longer.
修改重试次数为 2 次. (原版为 3 次)
对 POST 请求只发送一次, 防止部分重复提交问题. 对 POST 请求和重试的请求延长了超时时间.

# Added status & headers pages (http://gappproxy/status or headers)
增加了状态页面. 使用 http://gappproxy/status 查看缓存命中情况(如已有其它服务, 则此项不准确). http://gappproxy/headers 查看客户端头发送情况.

# Fixed 206 Support by checking content-length
服务器端修正了 Range_supported 判断.
客户端增加任意大小的 HTTP 206 请求支持. 默认分块大小改为 512 KBytes.

# Added some exceptions.
增加了部分判断以方便查看问题来源.
(服务器端: apiproxy_errors.OverQuotaError, urlfetch_errors.DownloadError, urlfetch_errors.ResponseTooLargeError. 客户端 socket 相关判断)

# Fixed multi-part POST request by using base64 in post_data.
# Fixed some encoding problem by using base64 in header data, dropping utf-8 encoding. REQUIRES client upgrade.
使用 Base64 保证 headers 和 post_data 完整性. (修复 Wrong length of post data 问题)
POST 请求限制更正为 768 KBytes. 上传功能已可用.
(重要: **与以前的客户端不兼容**)

友情提示: 请注意文章的时效性与准确性, 作者不对文章的有效性负责.





--
Posted By GFW BLOG 功夫网 to GFW BLOG at 5/19/2010 11:53:00 PM

--
1、请点击www.chinagfw.org访问我们,订阅地址:http://feeds2.feedburner.com/chinagfwblog。2、翻墙利器"赛风"(Psiphon)代理新网址:http://xinshenbuning.net/。3、本站热烈欢迎各位朋友投稿或推荐文章,请发邮件至chinagfwblog[at]gmail.com。
停止订阅,请发邮件到
gfw-blog+unsubscribe@googlegroups.com

没有评论:

发表评论