greenev —— Python 异步网络服务框架

时间:2015-04-01 09:23:43   收藏:0   阅读:289

greenev是一个基于greenlet协程,事件驱动,非阻塞socket模型的Python网络服务框架,它使得可以编写同步的代码,却得到异步执行的优点。 

本项目受到gevent, openresty, alilua, skynet, clowwindy/ssloop的启发,在此表示感谢。 


测试前请修改如下系统参数(CentOS): 

Cmd代码 
  1. net.ipv4.tcp_syncookies = 1   
  2. net.ipv4.tcp_tw_reuse = 1   
  3. net.ipv4.tcp_tw_recycle = 1   
  4. net.ipv4.tcp_fin_timeout = 30   
  5. net.ipv4.tcp_keepalive_time = 1200   
  6. net.ipv4.ip_local_port_range = 1024 65000   
  7. net.ipv4.tcp_max_syn_backlog = 8192   
  8. fs.file-max=65535   
  9. net.ipv4.tcp_max_tw_buckets = 20000   
  10. net.nf_conntrack_max = 65000   
  11. net.netfilter.nf_conntrack_tcp_timeout_established = 1200  



托管地址:https://github.com/Hevienz/greenev

原文:http://www.cnblogs.com/rrxc/p/4362771.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!