Unable to connect to server.php
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- php
- 领域
- backend, networking
调研方向
在所述的 Debian、PHP 和 Chrome 配置上使用 server.php 和 client.html 重现该故障。首先阅读 server.php 中的服务器启动和 WebSocket 握手处理,然后检查绑定到 EC2 内部 IP 与客户端连接之间的关系。完成的标准是握手成功,并且客户端保持连接,而不是报告状态 0 和 3。
由索引模型根据 Issue 内容生成。
描述
What steps will reproduce the problem?
1. Copied server.php and client.html
2. Started server
3. Accessed client.html
What is the expected output? What do you see instead?
WebSocket - status 0
Disconnected - status 3
What version of the product are you using? On what operating system?
Latest in SVN.
Server: Linux 2.6.32-5-xen-686, Debian, PHP 5.3.3-7+squeeze3 with Suhosin-Patch
Client: Google Chrome: 15.0.874.120 m
Please provide any additional information below.
Please note: this is on an Amazon EC2 instance. It binds to the internal IP
address of the instance.
Server Startup:
Server Started : 2011-11-15 17:51:59
Master socket : Resource id #4
Listening on : 10.161.46.7 port 12345
When client connects...:
Resource id #5 CONNECTED!
Requesting handshake...
GET /phpMonitor/phpwebsocket/server.php HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: <removed>:12345
Sec-WebSocket-Origin: http://drupal-api-external.myidrupal.com
Sec-WebSocket-Key: eXMxn8VG+e8ggX8wn/dyMg==
Sec-WebSocket-Version: 8
Cookie: __utma=36081407.1633026250.1320850778.1320850778.1321373913.2;
__utmc=36081407;
__utmz=36081407.1320850778.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Handshaking...
failed
Original issue reported on code.google.com by [email protected] on 15 Nov 2011 at 6:02
- 主要语言
- PHP
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
et-nik/phpwebsocket 的其他 Issue
-
auto-migrated Priority-Medium Type-Defect
难度 4/5 3-5 天 新手友好度 20/100
et-nik/phpwebsocket#77 ·
-
auto-migrated Priority-Medium Type-Defect
难度 3/5 1-2 天 新手友好度 20/100
et-nik/phpwebsocket#78 ·
-
auto-migrated Type-Patch
难度 5/5 一周以上 新手友好度 15/100
et-nik/phpwebsocket#72 ·
-
auto-migrated Type-Patch
难度 3/5 1-2 天 新手友好度 35/100
et-nik/phpwebsocket#73 ·
-
auto-migrated Type-Patch
难度 5/5 一周以上 新手友好度 10/100
et-nik/phpwebsocket#74 ·
查看 et-nik/phpwebsocket 的全部 Issue
相似的 Issue
-
type: enhancement
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
safety.uiowa.edu
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复
-
Bug-Report
难度 2/5 1-3 小时 新手友好度 72/100
RSS-Bridge/rss-bridge#5158 ·
维护者通常 1 天内回复
-
triage needed
难度 2/5 1-3 小时 新手友好度 68/100
kanboard/kanboard#5937 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
octobercms/october#6150 ·