If i start in daemon mode i see it in console
xxxx@xxxx:/var/www/html/xxxx$ sudo php websocket.php start -d Workerman[websocket.php] start in DAEMON mode Unknown: send of 5 bytes failed with errno=32 Broken pipe in file Unknown on line 0 ------------------------------------------- WORKERMAN -------------------------------------------- Workerman version:3.5.20 PHP version:7.0.33-0ubuntu0.16.04.3 -------------------------------------------- WORKERS --------------------------------------------- proto user worker listen processes status ssl root none websocket://0.0.0.0:8000 4 [OK] -------------------------------------------------------------------------------------------------- Input "php websocket.php stop" to stop. Start success.
Also this error in web client
Error in connection establishment: net::ERR_CONNECTION_RESET
But everything works fine if i start in DEBUG mode.
Whats the difference? Why same code works in DEBUG and does`t work in DAEMON mode?