ChangeLog from http://bogomips.org/sleepy_penguin.git commit 2c3c2b788c89b1ede5445bc930dd9dbb9a658c50 Author: Eric Wong Date: Fri Jan 21 16:51:23 2011 -0800 sleepy_penguin 1.3.1 - safety checks for delete One bugfix for Epoll#delete: Eric Wong (1): safer closed checks for proxied objects commit 6ba38eee337821cebcf9a7b15fcbf4622a06b78d Author: Eric Wong Date: Fri Jan 21 16:49:50 2011 -0800 safer closed checks for proxied objects Proxied objects may not be IOs at all, so have type-dependent checks to ensure they're closed. commit 6c39a46da8be194ca5069cd66ad9153f2ba09139 Author: Eric Wong Date: Fri Jan 21 14:59:08 2011 -0800 sleepy_penguin 1.3.0 - incremental improvements This release introduces compatibility with pre-EPOLLRDHUP systems. It also optimizes syscalls away for Epoll#set and Epoll#delete. Epoll#add, Epoll#mod and Epoll#del should no longer be needed in most code. commit 389c3b0d5c9d7b07de03dc76f143a3d036c30146 Author: Eric Wong Date: Fri Jan 21 13:05:25 2011 -0800 git.bogomips.org => bogomips.org Shortening URLs to save precious bytes! commit d1260beab708dea69d6a1e949089fef1de3b791d Author: Eric Wong Date: Fri Jan 21 11:40:55 2011 -0800 epoll: rdoc updates commit d65668ffdbb7319e6102214e92d83a60daaf4e1f Author: Eric Wong Date: Wed Jan 19 14:53:37 2011 -0800 move common packaging tasks into pkg.mk Makes it easier to share common code between projects and still use sh/make instead of Ruby :P commit ba49af7c89fabf87c8ea37d67dcdb8b74a1a344f Author: Eric Wong Date: Wed Jan 19 12:57:42 2011 -0800 use wrongdoc for URLs in Rakefile and gemspec Trying to be DRY, but we're sleepy and drool a lot commit 049ceab1d303105bf45951e00437af8979049204 Author: Eric Wong Date: Wed Jan 19 12:57:19 2011 -0800 GNUmakefile: fix manifest target commit bb4d312aedaa13548e5467512432b9a16b541a61 Author: Eric Wong Date: Tue Jan 18 10:06:42 2011 +0000 epoll: add a note about CLOCK_MONOTONIC for 1.8 We won't be spending too much time on 1.8 support anymore. commit e6ad2154a726795fd246bede8341c4fcfe28e1a8 Author: Eric Wong Date: Mon Jan 17 08:02:27 2011 +0000 epoll: add cache/mark array debugging methods Occasionally users may want a way to check if they stored an IO object or not, this makes it easier. commit 108d72b69f59d1c373981149c2a259bba3ff9dce Author: Eric Wong Date: Mon Jan 17 07:50:42 2011 +0000 use FIX2INT when we know we have a FIXNUM It's slightly faster commit 1c83e424e9bf80ff428a0c66332bb2318d70bd25 Author: Eric Wong Date: Mon Jan 17 07:42:55 2011 +0000 use flag cache and marks array to optimize away syscalls We can have simplify user code by caching flags and using the GC mark array to avoid syscalls and unnecessary errors/exceptions. commit 8a5fc89a0d84fe9f35f3afa207762b783f673df2 Author: Eric Wong Date: Sun Jan 16 05:09:57 2011 +0000 lazily initialize the mark array We don't want to end up accidentally splitting arrays for the same epoll file descriptor since they'll be linked. commit 7e3fa56ad3078fd980f12acf6d1344582a9aafef Author: Eric Wong Date: Sat Jan 15 13:12:17 2011 -0800 epoll: deal with missing EPOLLRDHUP on older systems Out-dated "enterprise" distros suck :P commit 743560f8af768a65e6f286fecf80b6ebd91be812 Author: Eric Wong Date: Sat Jan 15 11:54:15 2011 +0000 sleepy_penguin 1.2.0 - epoll GC help One convenience fix: epoll: prevent IO objects from getting GC-ed Users of our code may forget to keep references for their IO objects at all, and since it's not possible for GC to mark kernel memory, we just hold on to the IO objects for them. We can't unmark close()d file descriptors, ever, so we don't bother with the EPOLL_CTL_DEL case, either. Just storing IO objects in an array using the raw descriptor as a key will allow bounded space usage just like the in-kernel FD tables as long as the user remembers to close descriptors themselves. commit 681c7b02f1e1d9ca70a5748ef986361840746c3d Author: Eric Wong Date: Sat Jan 15 11:46:13 2011 +0000 epoll: prevent IO objects from getting GC-ed Users of our code may forget to keep references for their IO objects at all, and since it's not possible for GC to mark kernel memory, we just hold on to the IO objects for them. We can't unmark close()d file descriptors, ever, so we don't bother with the EPOLL_CTL_DEL case, either. Just storing IO objects in an array using the raw descriptor as a key will allow bounded space usage just like the in-kernel FD tables as long as the user remembers to close descriptors themselves. commit ab4f1a27e5d2c1688a33870b6d070aaa510ccdbc Author: Eric Wong Date: Thu Jan 13 14:26:58 2011 -0800 sleepy_penguin 1.1.1 - soft feathers, soft delete SleepyPenguin::Epoll#delete method added for "soft" failures Documentation updates and cleanups, the website is now JavaScript-free! (Ignore the 1.1.0 "release", it was a lie) commit f1729b7dfcf9b77e68d27304bfd7324724d43989 Author: Eric Wong Date: Thu Jan 13 14:35:42 2011 -0800 packaging fixups, oops Ugh, release got fat-fingered :< commit 7702d83a9a090ae73ace947be807f3f740b9d770 Author: Eric Wong Date: Thu Jan 13 14:26:58 2011 -0800 sleepy_penguin 1.1.0 - soft feathers, soft delete SleepyPenguin::Epoll#delete method added for "soft" failures Documentation updates and cleanups, the website is now JavaScript-free! commit a29b597e57cfcdf6a25cb4e8c12094e059833878 Author: Eric Wong Date: Thu Jan 13 14:25:27 2011 -0800 epoll: add "delete" for soft failures No need to burden applications. commit 9c44f01af3538fa51eeecd4944cca0ae1bc885b1 Author: Eric Wong Date: Thu Jan 13 14:09:26 2011 -0800 minor doc updates, use wrongdoc Switch documentation over to wrongdoc, no more JavaScript! Our documentation still sucks. commit 4e7fdc58a9ce5b3be5f4213ff4d2fbefac7b5cc5 Author: Eric Wong Date: Thu Jan 13 13:59:56 2011 -0800 test_epoll: redundant, redefined method, oops! commit f8a85cee27e4344783d560810a1a51dd43d5a92d Author: Eric Wong Date: Thu Jan 13 13:52:30 2011 -0800 extconf.rb: remove unnecessary dir_config We do not depend on external libraries other than the system C library commit 942e89550795316b01430c3d278c9d8ef20cc617 Author: Eric Wong Date: Mon Sep 27 17:21:46 2010 -0700 README: update summary It seems to make more sense this way... Editors wanted :) commit 97e9a7e764f912fddea75409dd388eaf3abe6a73 Author: Eric Wong Date: Sun Sep 26 06:29:09 2010 +0000 update documentation and build Should be ready for release commit 29bbb053277e9c054f1433c66a2e83ada44a5e8d Author: Eric Wong Date: Sun Sep 26 06:01:23 2010 +0000 test_epoll: workaround less aggressive GC in rbx Some of the GC tests aren't realistic, but if they work in MRI then we can expect them to work reasonably well everywhere. commit 43124e76e219d0be968fdeb09f6389d6895b0caf Author: Eric Wong Date: Sun Sep 26 06:00:10 2010 +0000 provide rb_io_close() for Rubinius Rubinius 1.1.1 does not include this function ref: http://github.com/evanphx/rubinius/issues/497 commit f3fd4447b650e75f48ac0fb9bada9b411c4b89cd Author: Eric Wong Date: Sun Sep 26 05:50:24 2010 +0000 epoll: fix typo for rb_memerror() Tested on Rubinius. commit 63b5fa10ae2f196f392bc6a9360ed2343215ce78 Author: Eric Wong Date: Sun Sep 26 04:00:30 2010 +0000 misc documentation updates We shall release without SignalFD support commit 1ad58cb0fd9045b8fa26b85d68ddf2eb06827dd3 Author: Eric Wong Date: Thu Sep 23 05:25:54 2010 +0000 wire up EventFD class This wraps the eventfd(2) interface of Linux. Like TimerFD, it is not available on older distributions. commit 2d5886698c3f7241ab23771c2876b985708ded40 Author: Eric Wong Date: Mon Sep 20 16:49:57 2010 +0000 add TimerFD class This wraps the timerfd_* interface in the Linux kernel. It is not available on older distributions. commit 4a9ce0319f6e0250c4a8e01284fd5684936bde21 Author: Eric Wong Date: Sun Sep 26 03:49:14 2010 +0000 epoll: add cross-thread test/example This can potentially be very powerful under 1.9 with native threads commit 96dad9948d3a7b181d50a9fcb35320677edc352b Author: Eric Wong Date: Sun Sep 26 03:48:50 2010 +0000 epoll: fix MRI 1.8 build It was just st.h in the old days. commit a226d237666728ea9242f6079b2c76528d53cdb2 Author: Eric Wong Date: Sun Sep 26 02:46:51 2010 +0000 Epoll#dup and Epoll#clone inherit close-on-exec There can be ways (in the future) where supporting Epoll#dup/Epoll#clone can proveuseful, so continue to support them until proven otherwise. commit 3ca3a23d3e68f62af6d57cf22825b2751c226fff Author: Eric Wong Date: Sun Sep 26 02:12:15 2010 +0000 simplify epoll_create1 wrapper There are no FD flags besides FD_CLOEXEC, so there's no point in making an extra fcntl() call. commit 43153f218e14cad3a2c6f4056fcf02dc49dc4b36 Author: Eric Wong Date: Sun Sep 26 01:41:47 2010 +0000 epoll: add fork protection It's dangerous to preserve epoll descriptors across fork, especially in Ruby where the GC can invalidate objects at any time. Installing pthread_atfork hooks prevents VALUE references stored in the kernel from leaking across process boundaries, making it far more difficult for a sanely written application to leak invalid VALUEs to the user. commit 81d66a794338e241e00b9ffd66fc94b80064475d Author: Eric Wong Date: Sat Sep 25 20:32:32 2010 +0000 Epoll#del only takes one argument We don't have to emulate the C API exactly, and it makes life saner/easier for our users. commit bc4aaf4afdfb42ad5cc5e0729f816fbefb3d338e Author: Eric Wong Date: Sat Sep 25 20:08:18 2010 +0000 epoll: factor out event data packing/unpacking Storing Ruby object values in the kernel means they won't be visible to the GC, but for the most part it's safe. commit 6296604742ed27ede171dad28f7d2bec2092d122 Author: Eric Wong Date: Sat Sep 25 19:27:09 2010 +0000 tests for EPOLLET and EINPROGRESS Just to make sure edge-triggering works on newly created TCP connections. commit e9e91bd9b9c571e9f3374a4b5aa44573f60c3d32 Author: Eric Wong Date: Sat Aug 21 09:00:57 2010 +0000 extconf: enable detection of {timer,signal,event}fd.h commit 7f841e560fae9406192994df352bfb902b2ebbe8 Author: Eric Wong Date: Sat Aug 21 09:00:42 2010 +0000 README: clarify that we're a Ruby library commit 133a7dad4b2179093e5bbb7db6db6c31a51817b7 Author: Eric Wong Date: Sat Aug 21 08:44:08 2010 +0000 initial - epoll support working