lioramr / ribs Goto Github PK
View Code? Open in Web Editor NEWRobust Infrastructure for Backend Systems
Home Page: http://www.adap.tv/company-engineering.html
License: Other
Robust Infrastructure for Backend Systems
Home Page: http://www.adap.tv/company-engineering.html
License: Other
Currently there are 2 hard coded timeout chains, one for server and a second one for the client. It makes more sense to allow setting up the timeout per file descriptor. The change would require creating a hash table of timeout chains where the key is the desired timeout and the value is the circular timeout chain.
uname -a :
Linux sbr-dks4 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64 GNU/Linux
Error:
(C++) acceptor.cpp [ -c -O3 -gdwarf-2 -W -Wall -Werror -I../../ribs/include acceptor.cpp -o ../obj/acceptor.o ]
acceptor.cpp:23: error: ‘vmpool_op’ is not a template
acceptor.cpp:23: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp:23: error: aggregate ‘vmpool_op pool’ has incomplete type and cannot be defined
acceptor.cpp:25: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp: In function ‘int init(int, int, int, epoll_server_event_array_)’:
acceptor.cpp:27: error: invalid use of ‘this’ in non-member function
acceptor.cpp:28: error: invalid use of ‘this’ in non-member function
acceptor.cpp:28: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp:82: error: invalid use of ‘this’ in non-member function
acceptor.cpp:86: error: invalid use of ‘this’ in non-member function
acceptor.cpp:89: error: ‘callback’ was not declared in this scope
acceptor.cpp:89: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp:90: error: ‘accept_callback’ was not declared in this scope
acceptor.cpp:90: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp: At global scope:
acceptor.cpp:94: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp: In function ‘basic_epoll_event_ on_accept()’:
acceptor.cpp:98: error: invalid use of ‘this’ in non-member function
acceptor.cpp:106: error: ‘events’ was not declared in this scope
acceptor.cpp:108: error: no matching function for call to ‘epoll::add(server_epoll_event_&, int)’
../../ribs/include/epoll.h:112: note: candidates are: static int epoll::add(basic_epoll_event_, uint32_t)
acceptor.cpp:109: error: invalid use of incomplete type ‘struct server_epoll_event’
acceptor.cpp:23: error: forward declaration of ‘struct server_epoll_event’
acceptor.cpp:109: error: ‘callback’ was not declared in this scope
acceptor.cpp:111: error: invalid use of ‘this’ in non-member function
acceptor.cpp:112: error: cannot convert ‘server_epoll_event_’ to ‘basic_epoll_event_’ in return
acceptor.cpp: At global scope:
acceptor.cpp:115: error: ‘template struct acceptor’ used without template parameters
acceptor.cpp: In function ‘void init_per_thread()’:
acceptor.cpp:117: error: invalid use of ‘this’ in non-member function
commit cb174b0 (previous) works just fine
Currently the framework allocates fixed size pools of objects (http_server, http_client, etc) where the size of the pool is the number of max file descriptor allowed. Switching to dynamic pools which can be allocated using vmbuf will reduce the number of maps.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.