Greenev is a Python Network Service framework based on the Greenlet, event-driven, non-blocking socket model, which makes it possible to write synchronous code without the benefit of asynchronous execution.
This project was inspired by Gevent, Openresty, Alilua, Skynet, Clowwindy/ssloop, and expressed gratitude here.
- Reactor mode uses IO multiplexing mechanism based on Epoll, Kqueue, poll, select
- Completion of scheduling of Upper Greenlet reactor based on the underlying
- Tested on CentOS6.5, Ubuntu12.04, FreeBSD10.1, Windows7
- Simply call G.parent.switch to suspend the current coprocessor without having to manage the details
Before testing, please modify the following system parameters (CentOS):
CMD code
- Net.ipv4.tcp_syncookies = 1
- Net.ipv4.tcp_tw_reuse = 1
- Net.ipv4.tcp_tw_recycle = 1
- Net.ipv4.tcp_fin_timeout =
- Net.ipv4.tcp_keepalive_time =
- Net.ipv4.ip_local_port_range = 1024x768 65000
- Net.ipv4.tcp_max_syn_backlog = 8192
- fs.file-max=65535
- Net.ipv4.tcp_max_tw_buckets = 20000
- Net.nf_conntrack_max = 65000
- net.netfilter.nf_conntrack_tcp_timeout_established =
Managed Address: Https://github.com/Hevienz/greenev
Greenev--python Asynchronous Network Service framework