Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Unable to connect to server.php

未关闭
#40 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
php

调研方向

在所述的 Debian、PHP 和 Chrome 配置上使用 server.php 和 client.html 重现该故障。首先阅读 server.php 中的服务器启动和 WebSocket 握手处理,然后检查绑定到 EC2 内部 IP 与客户端连接之间的关系。完成的标准是握手成功,并且客户端保持连接,而不是报告状态 0 和 3。

由索引模型根据 Issue 内容生成。

描述

auto-migrated Priority-Medium Type-Defect
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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

et-nik/phpwebsocket 的其他 Issue

查看 et-nik/phpwebsocket 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。