Greenev--python Asynchronous Network Service framework

Source: Internet
Author: User

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
  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 =
  5. Net.ipv4.tcp_keepalive_time =
  6. Net.ipv4.ip_local_port_range = 1024x768 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 =



Managed Address: Https://github.com/Hevienz/greenev

Greenev--python Asynchronous Network Service framework

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.