{"action":"closed","issue":{"url":"https://api.github.com/repos/walkor/GatewayClient/issues/14","repository_url":"https://api.github.com/repos/walkor/GatewayClient","labels_url":"https://api.github.com/repos/walkor/GatewayClient/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/walkor/GatewayClient/issues/14/comments","events_url":"https://api.github.com/repos/walkor/GatewayClient/issues/14/events","html_url":"https://github.com/walkor/GatewayClient/issues/14","id":383588165,"node_id":"MDU6SXNzdWUzODM1ODgxNjU=","number":14,"title":"Can not connect to tcp://127.0.0.1:1236 Connection refused","user":{"login":"wzfjesun","id":6768736,"node_id":"MDQ6VXNlcjY3Njg3MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/6768736?v=4","gravatar_id":"","url":"https://api.github.com/users/wzfjesun","html_url":"https://github.com/wzfjesun","followers_url":"https://api.github.com/users/wzfjesun/followers","following_url":"https://api.github.com/users/wzfjesun/following{/other_user}","gists_url":"https://api.github.com/users/wzfjesun/gists{/gist_id}","starred_url":"https://api.github.com/users/wzfjesun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzfjesun/subscriptions","organizations_url":"https://api.github.com/users/wzfjesun/orgs","repos_url":"https://api.github.com/users/wzfjesun/repos","events_url":"https://api.github.com/users/wzfjesun/events{/privacy}","received_events_url":"https://api.github.com/users/wzfjesun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-22T15:47:40Z","updated_at":"2018-11-24T07:49:56Z","closed_at":"2018-11-24T07:49:56Z","author_association":"NONE","body":"你好，\r\nGateway::$registerAddress = '127.0.0.1:1236';\r\n执行Gateway::sendToAll('7777');\r\n报错：\r\n\r\nCan not connect to tcp://127.0.0.1:1236 Connection refused\r\n`\r\nWorkerman[start.php] status \r\n----------------------------------------------GLOBAL STATUS----------------------------------------------------\r\nWorkerman version:3.5.15          PHP version:7.0.32-0ubuntu0.16.04.1\r\nstart time:2018-11-22 23:34:57   run 0 days 0 hours   \r\nload average: 1.73, 1, 1         event-loop:\\Workerman\\Events\\Select\r\n4 workers       11 processes\r\nworker_name        exit_status      exit_count\r\nChatBusinessWorker 64000            3\r\nChatGateway        0                0\r\nRegister           0                0\r\nWebServer          0                0\r\n----------------------------------------------PROCESS STATUS---------------------------------------------------\r\npid\tmemory  listening                worker_name        connections send_fail timers  total_request qps    status\r\n6806\t4M      none                     ChatBusinessWorker 5           0         0       5             0      [idle]\r\n6808\t4M      none                     ChatBusinessWorker 5           0         0       5             0      [idle]\r\n6810\t2M      websocket://0.0.0.0:7272 ChatGateway        5           0         1       7             0      [idle]\r\n6811\t2M      websocket://0.0.0.0:7272 ChatGateway        5           0         1       7             0      [idle]\r\n6812\t2M      websocket://0.0.0.0:7272 ChatGateway        7           0         1       21            0      [idle]\r\n6813\t2M      websocket://0.0.0.0:7272 ChatGateway        6           0         1       14            0      [idle]\r\n6814\t2M      text://0.0.0.0:1236      Register           8           0         0       11            0      [idle]\r\n6815\t2M      http://0.0.0.0:55151     WebServer          0           0         0       0             0      [idle]\r\n6816\t2M      http://0.0.0.0:55151     WebServer          0           0         0       0             0      [idle]\r\n6817\t4M      none                     ChatBusinessWorker 5           0         0       6             0      [idle]\r\n6864\t4M      none                     ChatBusinessWorker 5           0         0       11            0      [idle]\r\n`\r\n\r\n为什么注册的时候必须用text协议，但是连接却代码里写死了用tcp协议呢？\r\n![screenshot from 2018-11-22 23-49-44](https://user-images.githubusercontent.com/6768736/48912822-8e5ece00-eeb1-11e8-97d1-eb17dde6b581.png)\r\n"}}
{"actor":{"display_login":"wzfjesun"}}