ETiV
ETiV
The response of `user-data` API should not be fetched line by line. ## Description On Alibaba Cloud, the response of `user-data` metadata API is not processed properly. ## Related Issue...
## Description > The content of `user-data` API should be stored properly, not to be continuously requested line by line. On Alibaba Cloud, the user-data API (URL: `http://100.100.100.200/2016-01-01/user-data` ) responds...
三条建议
1. Pomelo模板下, `servers.json` 配置文件中的`host`, 推荐改成`0.0.0.0`, 而不是现在的`127.0.0.1`. 多数有经验的程序员/系统管理员, 看到这个配置, 会以为程序只驻守`127.0.0.1`网络地址. 而修改后, 更符合思维惯性. (同时`starter.js`里的`isLocal`也应一并修改.) 2. 在`game-server/app.js`中, 除非大部分client库都已支持Pomelo 0.3版本的新协议, 否则不推荐默认代码中直接使用`hybirdconnector`和数据压缩配置. 而应在`app.js`及`entryHandler.js`中加以注释, 告知用户可以切换到`hybirdconnector`的条件. 3. 感觉用json文件作为配置文件有一点不好, 没法插入评论. 导致很多才接触Pomelo的人对着初始化新项目后的配置文件手足无措. 比如第一条建议中出现的情况. 更多的发生在带有`gate`服务器, 用来负载均衡的时候. 人们不知道怎么设置. 而如果此时在`"connector"`后面加入注释内容, 说明`gate`使用这里的IP作为客户端连入IP. 相信绝大多数人都不会再去Google或者发Issue了....