eventlet kqueue hub

written by shn, on Jan 29, 2010 2:14:00 PM.

先日のAppleのイベント用にこんなのを作って、動かしたりしてたいました。

中身はテキトーに書いたeventletベースCometサーバをFreeBSDで動かしてるのですが、eventletはkqueueのhubが無いのでちょっと負荷が心配になった。ので、kqueueのhubをでっち上げた。例によってテストは無いけど、一晩動いてたのでこの方向でいいのかしら。

http://gist.github.com/287764

kqueueバージンだったので、誰か優しく手ほどきしてください。

Comments

  • Take a look at gevent (www.gevent.org) which is built on top of libevent and thus already works on kqueue on FreeBSD.

    Comment by denis — Jan 29, 2010 5:07:20 PM | # - re

  • Wao! Thank you very much for your comment. I was really surprised that commented by the author of gevent. I'll try to use gevent next time.

    Comment by shn — Feb 7, 2010 1:39:56 AM | # - re

Leave a Reply