[PATCH] plugable event loop in serf

2 views
Skip to first unread message

Paul Querna

unread,
Nov 14, 2007, 3:07:41 AM11/14/07
to serf...@googlegroups.com
Rough patch.

This lets you use your own pollset (or an entirely different polling
system) to power Serf. Think about combining the Event Loops of
Existing systems like Apache HTTPD's Event MPM, or even things like
GLib. Before this, you would almost always want serf's context to run
in a separate thread, or something silly like that. This should let
users pick their event loop, and then tell serf when its sockets are
ready.

The patch should maintain complete backwards compat with existing
API/users, since if you call the old context_create, serf creates the
same pollset as it used to.

Needs formating, function renaming, and doxygen cleanups.... But I
think its pretty close to what we would want a final API function
signatures to look like.

thoughts?

Thanks,

-Paul

serf-event-loop-freedom.patch

Paul Querna

unread,
Nov 14, 2007, 3:17:46 AM11/14/07
to serf...@googlegroups.com
Yeah, Here is a better patch that returns correctly in
serf_context_prerun, and actually seems to work.
serf-event-loop-freedom-2.patch

Justin Erenkrantz

unread,
Nov 14, 2007, 9:26:53 AM11/14/07
to serf...@googlegroups.com
On Nov 14, 2007 3:17 AM, Paul Querna <paul....@gmail.com> wrote:
> Yeah, Here is a better patch that returns correctly in
> serf_context_prerun, and actually seems to work.

Looks good. +1 to commit. -- justin

Reply all
Reply to author
Forward
0 new messages