Peng Liu

Results 6 issues of Peng Liu

``` lua while true do local ret = actor.wait({ recv = function(msg) return "hello world" end }) end ``` sometimes I think It's very useful ; -)

这个接口经常看到 ;-)

alex, 我觉得在luactor中没必要把消息约定为msg, 而是以...直接给出接口更优雅 actor.send('foo', 'f', 'test1', 'test2') actor.wait({ f = function(sender, ...) local v1, v2 = ... print(v1, v2) end }) ;-)

for table, lua use reference, so when a actor send a table to another actor, there has a deepcopy problem.this is unsafe, must pay attention to it. so this is...

在client和server都搭建好了. 配置使用的就是默认配置, 按照wiki照做. 完成后, 在客户端: ping www.google.com可以ping通.(DNS已经改成8.8.8.8) traceroute可以看到走的就是tun0出去的. 但是当用wget www.google.com尝试直接访问google就不行了,在客户端Wireshark抓包,发现了TCP重传。 于是用tcpdump在vps上抓包 发现在vps的eth0口(外网端口), www.google.com 服务器有返回数据, 但是在vps的tun0上只有发送的数据包,看不到返回的数据包. 现象就是ICMP包可以顺利返回,而TCP包无法返回,不知道为什么从vps的eth0返回的数据到达不了tun0了。 已经检查了ip_forward参数为1,eth0的nat已经打开。 很奇怪.

打算引入pbc了, cloudwu出品必属精品, ;-) 项目跑在基于linux的ARM设备上, 貌似交叉编译没什么问题, 还没跑, 不知云风哥protobuf解析会不会有字节序的问题? 还是protoc工具本身的事情 :-)