Erlang实现的网络服务器性能是非常高的,一个典型的服务器比如proxy我们可以处理40万个包的进出,链接数在万级别的。当然这么高的网络 能力和底层的epoll实现有很大关系。那么通常我们的gen_tcp收到内核协议栈过来完整的封包的时候,有三种方式可以通知到我们,参见 inet:setopts文档{active, true | false | once}If the value is true, which is the default, everything received from the socket will be sent as messages to the receivin Read More
posted @ 2014-03-23 00:03 风华一指流砂,苍老一段年华 Views(307) Comments(0) Diggs(0) Edit