[
https://issues.apache.org/jira/browse/TS-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783307#action_12783307
]
John Plevyak commented on TS-49:
--------------------------------
I have done some work on this. I think we need to encapsulate the polling
setup as the current epoll stuff is open coded in a number of locations.
I am using an EventIO struct which encapsulates the libev ev_io as well as the
current union for the VCs and type
in P_Net.h with an interface:
int add_init(EThread *t, VConnection *vc, int events);
int stop();
int close();
Currently I included part of the libev event loop in the UnixNet.cc so that I
can maintain the same code structure, but
it would be much cleaner to reorganize and simplify the code however that would
be easier if we committed to libev
instead of maintaining the #ifdef. Including part of the event loop also
required including internal libev headers.
The code isn't done as I am not satisfied that it is as clean and simple as I
would like. I would be interested in hearing
what others are thinking.
> libev based polling infrastructure
> ----------------------------------
>
> Key: TS-49
> URL: https://issues.apache.org/jira/browse/TS-49
> Project: Traffic Server
> Issue Type: New Feature
> Reporter: Paul Querna
>
> prototype of using libev to power polling for events.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.