Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

error "not a valid Socket resource"

Đang mở
#37 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
networking

Hướng nghiên cứu

Mở server.php tại dòng 15 và kiểm tra lệnh gọi socket_select báo lỗi «invalid resource». Tái hiện lỗi bằng cách khởi động server và tải client.html trong Chrome, sau đó xác nhận rằng server vẫn duy trì kết nối mà không có cảnh báo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

auto-migrated Priority-Medium Type-Defect
What steps will reproduce the problem?
1. start the server
2. load the file client.html in Google Chrome
3.

What is the expected output? What do you see instead?
The server is expected to work, but it's showing the following error instead:
Warning: socket_select(): 5 is not a valid Socket resource in 
/home/mink500/public_html/test/server.php on line 15

What version of the product are you using? On what operating system?
r8

Please provide any additional information below.
I tried to make the server work locally using XAMPP (Apache and PHP) but I got 
the same error. I also tried to change ports and follow the instructions in 
this issue:
http://code.google.com/p/phpwebsocket/issues/detail?id=33
But I still get the error "5 is not a valid Socket resource" and the 
application is disconnected. 
I remember that refreshing the page several times I got it running a few months 
ago, but now it's impossible. Besides, it has to work all the time, not just 
after refreshing the page like 20 times.

Original issue reported on code.google.com by [email protected] on 31 Aug 2011 at 3:50

Ngôn ngữ chính
PHP
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của et-nik/phpwebsocket

Tất cả issue của et-nik/phpwebsocket

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.