Skip to content

Conversation

@anthonywei
Copy link

this version support thrift with c++ server use epoll and multiprocess

add four files as follows:

server/TEpollServer.h
server/TEpollServer.cpp

transport/TServerEpollSocket.h
transport/TServerEpollSocket.cpp

Advantags: we use epoll to watch the connections events, not use recv() and timeout. more effective. And also it is even more effective than recv() + timeout + multi-thread and also it is of simlity. you do not need to care about thread-safe class, objects and anything.

@jfarrell
Copy link
Contributor

Thanks for your patch @anthonywei, in order for us to accept a pull request we need to have a jira ticket associated with it. Please see our contributing guide at http://thrift.apache.org/docs/HowToContribute

@jfarrell jfarrell closed this Apr 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants