소스 검색

Fix autoload

walkor 5 년 전
부모
커밋
f9a664de75
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      Worker.php

+ 1 - 3
Worker.php

@@ -2208,14 +2208,12 @@ class Worker
             }
             $this->_context = \stream_context_create($context_option);
         }
-        
-        $this->parseSocketAddress();
 
         // Turn reusePort on.
         if (static::$_OS === \OS_TYPE_LINUX  // if linux
             && \version_compare(\PHP_VERSION,'7.0.0', 'ge') // if php >= 7.0.0
             && \strtolower(\php_uname('s')) !== 'darwin' // if not Mac OS
-            && $this->transport !== 'unix') { // if not unix socket
+            && strpos($socket_name,'unix') !== 0) { // if not unix socket
 
             $this->reusePort = true;
         }