本文共 175 字,大约阅读时间需要 1 分钟。
自己处理粘包的时候,使用{active, N}(还没有到被动模式)和{active, true}选项的时候,在handle_info({tcp,Socket,Data}里面需要好好处理下粘包,具体可以看下面的例子
https://github.com/kqqsysu/ssdb-erlang/blob/master/src/ssdb_conn.erl
转载地址:http://bpxlf.baihongyu.com/