test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
johan 2 years ago
parent a3e47bc1d8
commit 8da07f2000

@ -61,8 +61,6 @@ $response='';
$request=''; $request='';
$client=null;
while(true) { while(true) {
// Commencer à écouter sur le port // Commencer à écouter sur le port
@ -79,7 +77,7 @@ while(true) {
if(in_array($socket,$read)) if(in_array($socket,$read))
{ {
// Accepter la connection entrante // Accepter la connection entrante
if($client = socket_accept($socket) === false || $client===null) if($client = socket_accept($socket) === false)
{ {
echo "N'a pas pu accepter la connection entrante ERROR : ".socket_strerror(socket_last_error())."\n"; echo "N'a pas pu accepter la connection entrante ERROR : ".socket_strerror(socket_last_error())."\n";
return; return;

Loading…
Cancel
Save