librelist archives

« back to archive

Poll Back In Style

Poll Back In Style

From:
Zed A. Shaw
Date:
2010-08-14 @ 22:25
Hey Everyone,

I just did the commit that bring back poll as the base event system so
Mongrel2 will run on OSX or other platforms without epoll.  Right now
it's a simple -DNO_EPOLL in the Makefile which compiles the epoll code
out.  It works fine and seem that there's just a segfault on shutdown
that I have to fix.

Today I'll be polishing this off and then making it
configurable/tweakable.  You'll be able to set number of open files,
whether to use epoll if available, epoll/poll size levels, and a few
other simple options.

Try out building and running on OSX and report back to me.  I did a
quick test on my older mac but not on anything recent.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Poll Back In Style

From:
Alex Gartrell
Date:
2010-08-14 @ 22:58
All tests passed on Mac OS X 10.6.4 and it seemed to work under a file
serving smoke test.

On Sat, Aug 14, 2010 at 6:40 PM, Alex Gartrell <alexgartrell@gmail.com>wrote:

> All Tests passed here on Mac OS X 10.6.4
>
>
> On Sat, Aug 14, 2010 at 6:25 PM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
>
>> Hey Everyone,
>>
>> I just did the commit that bring back poll as the base event system so
>> Mongrel2 will run on OSX or other platforms without epoll.  Right now
>> it's a simple -DNO_EPOLL in the Makefile which compiles the epoll code
>> out.  It works fine and seem that there's just a segfault on shutdown
>> that I have to fix.
>>
>> Today I'll be polishing this off and then making it
>> configurable/tweakable.  You'll be able to set number of open files,
>> whether to use epoll if available, epoll/poll size levels, and a few
>> other simple options.
>>
>> Try out building and running on OSX and report back to me.  I did a
>> quick test on my older mac but not on anything recent.
>>
>> --
>> Zed A. Shaw
>> http://zedshaw.com/
>>
>
>

Re: [mongrel2] Poll Back In Style

From:
Zed A. Shaw
Date:
2010-08-14 @ 23:53
On Sat, Aug 14, 2010 at 06:58:57PM -0400, Alex Gartrell wrote:
> All tests passed on Mac OS X 10.6.4 and it seemed to work under a file
> serving smoke test.

Nice.  Alright so I'll try to make this more "dynamic" so that it's not
an option set in the Makefile.

-- 
Zed A. Shaw
http://zedshaw.com/