Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

error "not a valid Socket resource"

Aperta
#37 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
php
Ambito
networking

Direzione di ricerca

Apri server.php alla riga 15 e ispeziona la chiamata a socket_select che segnala «invalid resource». Riproduci il problema avviando il server e caricando client.html in Chrome, quindi verifica che il server rimanga connesso senza l’avviso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di et-nik/phpwebsocket

Tutte le issue di et-nik/phpwebsocket

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.