On 3 Mar 2015, at 21:00, Jacob Champion <jacob.champ...@ni.com> wrote:
> It turns out this works pretty well. The key complication is that the > wakeup is lossy (multiple simultaneous wakeups are treated as one) so > it's important to drain the entire "message queue" before polling again. > I borrowed mod_spdy's sort-of-busy-loop approach to do that, and I used > mod_proxy_wstunnel's poll-on-the-input-socket approach to block. > > The result is a mod_websocket that hasn't crashed yet during overnight > TLS stress tests (it used to crash regularly within a couple of seconds > of starting). I was also able to remove the extra pool and bucket > allocator that Alex added, since reading and writing are now done using > only a single thread. > > I'm waiting on internal approval to post the five-patch set here (unless > of course there is any objection from the mailing list; I don't see a > lot of patch mail in the archives). It would make more sense to > contribute directly to the original author, if said author were still > around... I for one would be interested in this. Feel free to fork my repo on github. -- Alex Bligh