@@ -378,8 +378,7 @@ public function run()
378378 ob_implicit_flush (1 );
379379
380380 $ this ->loop = Factory::create ();
381- $ this ->controllerHost = $ this ->getControllerSocketPath ();
382- $ this ->controller = new UnixServer ($ this ->controllerHost , $ this ->loop );
381+ $ this ->controller = new UnixServer ($ this ->getControllerSocketPath (), $ this ->loop );
383382 $ this ->controller ->on ('connection ' , array ($ this , 'onSlaveConnection ' ));
384383
385384 $ this ->web = new Server (sprintf ('%s:%d ' , $ this ->host , $ this ->port ), $ this ->loop );
@@ -860,13 +859,13 @@ protected function newSlaveInstance($port)
860859 $ this ->output ->writeln (sprintf ("Start new worker #%d " , $ port ));
861860 }
862861
862+ $ socketpath = var_export ($ this ->getSocketPath (), true );
863863 $ bridge = var_export ($ this ->getBridge (), true );
864864 $ bootstrap = var_export ($ this ->getAppBootstrap (), true );
865865
866866 $ config = [
867867 'port ' => $ port ,
868868 'session_path ' => session_save_path (),
869- 'controllerHost ' => $ this ->controllerHost ,
870869
871870 'app-env ' => $ this ->getAppEnv (),
872871 'debug ' => $ this ->isDebug (),
@@ -894,7 +893,7 @@ protected function newSlaveInstance($port)
894893}
895894
896895//global for all global functions
897- ProcessSlave:: \$slave = new ProcessSlave( $ bridge, $ bootstrap, $ config);
896+ ProcessSlave:: \$slave = new ProcessSlave( $ socketpath , $ bridge, $ bootstrap, $ config);
898897ProcessSlave:: \$slave->run();
899898EOF ;
900899
0 commit comments