Giter Club home page Giter Club logo

cproxy-1's Introduction

本版本为转发服务器,将用户发过来的数据转发给tornado

解决由于没有判断epool_wait的返回值,而引起fd=0的bug

采用epool master - worker worker数等于cpu数 并与cpu进行绑定 master进程:服务区初始化,加载配置文件,管理worker进程 当有worker进程异常退出后,重启新的worker worker进程:接收用户请求,处理用户请求信息,将处理后的亲求信息发送给目标服务器,就收目标服务器的回传信息,处理回传信息,将处理后的目标服务器回传信息发送给用户 接收master进程的指令

采用共享内存进行通信

gcc -shared src/core/init.c src/event/event.c src/json/cJSON.c -o libaosen.so -fPIC gcc main.c -L. -laosen -lm -o aosen

cproxy-1's People

Contributors

aosen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.