liuhuasong / phpsocks5

Automatically exported from code.google.com/p/phpsocks5
0 stars 0 forks source link

无法使用服务…… #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
建立数据表成功,但启用时显示以下提示,服务器无法使用��
�不知道是什么原因?

DNS: couldn't open /etc/resolv.conf: No such file or directory
Disabling disk cache: No such file or directory
Disabling local tree: No such file or directory
Established listening socket on port 10088

Original issue reported on code.google.com by liruc...@gmail.com on 14 Mar 2011 at 5:16

GoogleCodeExporter commented 8 years ago
这些提示是正常的,请设置浏览器的HTTP和HTTPS代理服务器为12
7.0.0.1端口10088即可使用。

Original comment by lehui99 on 14 Mar 2011 at 8:07

GoogleCodeExporter commented 8 years ago
Firefox用127.0.0.1:10088连接失败……phpsocks5是不是不能运行在带�
��强制广告的免费空间上?

Original comment by liruc...@gmail.com on 15 Mar 2011 at 1:05

GoogleCodeExporter commented 8 years ago
补上LOG文件

Original comment by liruc...@gmail.com on 15 Mar 2011 at 1:20

GoogleCodeExporter commented 8 years ago
看了log,应该是客户端收到的数据没有包含服务器返回的数��
�导致的。不知道这个广告是怎么加上去的?可以贴一下正常h
tml在不包含广告的情况下和包含广告的情况下的html源代码。

Original comment by lehui99 on 17 Mar 2011 at 2:44

GoogleCodeExporter commented 8 years ago
它是自动在网页的末尾加上一些代码……

Original comment by liruc...@gmail.com on 17 Mar 2011 at 3:53

GoogleCodeExporter commented 8 years ago
如果只是在末尾加上一些代码,那么phpsocks5理应可以正常工��
�。但从log来看,客户端收到的数据并不包含服务器端返回的�
��据,可以看一下今天新加的wiki页参数列表,为了防止加入��
�告和php本身错误显示加了prefix和postfix。

Original comment by lehui99 on 17 Mar 2011 at 4:25

GoogleCodeExporter commented 8 years ago
试试看0.4.3版,0.4.3增加了更多的log信息,针对有广告的情况�
��印了更多的信息,可以反馈0.4.3版的log文件,这样我就能看�
��广告的具体情况了。

Original comment by lehui99 on 19 Mar 2011 at 12:12

GoogleCodeExporter commented 8 years ago
我重新安装了0.5版,然后把log信息传上来了,请帮我看看,��
�谢。

Original comment by liruc...@gmail.com on 26 Mar 2011 at 1:35

GoogleCodeExporter commented 8 years ago
大约是可以通过prefix与postfix解决的,但我不知该怎么设置,�
��否给个示例?

Original comment by liruc...@gmail.com on 26 Mar 2011 at 1:51

GoogleCodeExporter commented 8 years ago
默认就是使用了prefix和postfix的,不知道你这里是什么情况,�
��先看看再说。

Original comment by lehui99 on 26 Mar 2011 at 1:54

GoogleCodeExporter commented 8 years ago
看了一下你的情况,结果中确实有广告,但并不是导致不能��
�用的原因。

导致不能使用的原因是php返回的结果并没有发送给客户端,��
�不知道是什么原因。这可能要你问一下你的php虚拟主机供应�
��了。

比如php返回abcdefg\x00\x01...\xffbcdefgh,结果服务器只发送了abcdef
g\x00就结束了,之后就是广告代码了,缺少了\x01...\xffbcdefgh这
些内容。

也就是说,看上去似乎是广告代码不是添加到结尾的,而是��
�换覆盖了结尾数据,而且还替换了超过50%的数据。换句话,�
��就是在添加广告代码之前删除了php返回的超过50%的信息,然
后加上了广告代码。

Original comment by lehui99 on 26 Mar 2011 at 2:03

GoogleCodeExporter commented 8 years ago
测试方法也很简单,分别在有广告和无广告的php空间中测试��
�这个附件test.php,正常情况下使用下载工具下载后为1KB,如��
�附加了广告的话下载下来应该是超过1KB的,如果少于1KB就说�
��破坏了php返回的原始数据。

Original comment by lehui99 on 26 Mar 2011 at 2:17

Attachments:

GoogleCodeExporter commented 8 years ago
我用下载工具Down下来的文件,好象只剩下广告了,别的啥也�
��有。

Original comment by liruc...@gmail.com on 26 Mar 2011 at 2:43

GoogleCodeExporter commented 8 years ago
用另一个无广告的收费空间,下载该文件,里面有很多内容��
�而用带广告的免费空间,就啥也下不到了。

Original comment by liruc...@gmail.com on 26 Mar 2011 at 2:47

GoogleCodeExporter commented 8 years ago
用其他空间,比如没有广告的空间测试呢?

如果其他空间下载下来的文件大小比你这个空间下载下来的��
�件大小还要大,说明你这个空间不会返回给浏览器/下载软件
/客户端完整的数据。

Original comment by lehui99 on 26 Mar 2011 at 2:48

GoogleCodeExporter commented 8 years ago
这样看来,这个空间是没办法利用了。呵呵~~~谢谢你的耐心��
�)

Original comment by liruc...@gmail.com on 26 Mar 2011 at 2:53

GoogleCodeExporter commented 8 years ago
哦,就是说你的带广告的免费空间把php本来应该返回给下载��
�具的数据全丢了。

Original comment by lehui99 on 26 Mar 2011 at 2:53

GoogleCodeExporter commented 8 years ago
也不能说无法利用了,首先要搞清楚到底是为什么这个空间��
�把本来应该返回给浏览器/下载工具/客户端的数据丢了,有��
�有办法避免这种情况?

如果找到规律可以避免这种情况的话,说不定还是能找到解��
�办法的。

Original comment by lehui99 on 26 Mar 2011 at 2:56

GoogleCodeExporter commented 8 years ago
呃,理论上是这样,但有什么办法能弄清楚这种规律呢?会��
�会是服务器端禁掉了某些PHP命令?

Original comment by liruc...@gmail.com on 27 Mar 2011 at 4:13

GoogleCodeExporter commented 8 years ago
这个空间只有你有,可能只有你能找出规律了。

应该不是禁用了某些php命令,你看test.php,其中只有echo一个��
�令。

Original comment by lehui99 on 27 Mar 2011 at 4:36

GoogleCodeExporter commented 8 years ago
试试看最新版,Content-Type改为了image/png应该没有广告也不会��
�失数据了。

Original comment by lehui99 on 3 May 2011 at 7:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
仍然不行,安装新版之后,使用代理会出现socks protocol error

Original comment by liruc...@gmail.com on 9 May 2011 at 1:15

GoogleCodeExporter commented 8 years ago
贴一下服务器和客户端log?

Original comment by lehui99 on 9 May 2011 at 3:21