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

Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php

调研方向

检查服务器的 WebSocket 握手路径,并将其响应与 issue 中描述的 Sec-WebSocket-Accept 协议进行比较。在 Chrome 17 中针对本地或在线服务器复现一次正常连接;完成的标准是客户端到达 connect,而不是以状态 3 断开连接,并且响应包含所需的 header。未确定文件或测试,尽管报告称已附加 patch。

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

描述

auto-migrated Priority-Medium Type-Defect
What steps will reproduce the problem?
1. Normal connect to a lazy local or online server, see 'Sec-WebSocket-Accept' 
header is missing in Chrome 17

What is the expected output? What do you see instead?
Normally the client should get the "connect" state, but unfortunately it is 
disconnecting immediately with status 3. 


What version of the product are you using? On what operating system?
Latest one.


Please provide any additional information below.
What you need is to implement the Sec-WebSocket-Accept header, see 
http://en.wikipedia.org/wiki/WebSocket#WebSocket_protocol_handshake
The client provides the key and the server respond with the encrypted accepted 
header. I've patched that for you. Can I join the project? Attached the patch.


Original issue reported on code.google.com by michaelpalmer04 on 25 Apr 2014 at 8:12

主要语言
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 摘要。