[systemd-devel] SSL for gatewayd

Colin Guthrie gmane at colin.guthr.ie
Mon Feb 4 11:26:45 PST 2013


'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 16/01/13 20:55 did
gyre and gimble:
> On Wed, Jan 16, 2013 at 09:33:22PM +0100, Holger Winkelmann wrote:
>> Can't speak from person experience, but my team has worked with the libevent and
>> libev libraries which contain http libraries as well.
> IIUC, libev uses libevent code for HTTP through a compatibility
> layer. libevent has only very basic functionality. E.g. I couldn't
> see a mention of POST requests anywhere. libmicrohttpd at least
> abstracts this to the point where I only have to provide a callback
> to consume buffers with data.
> 
> Also, libevent/libev are about abstracting event loops. Since journald
> is linux only, this extra abstraction layer is not very useful.

Whist having next to zero experience of libevent, I happened to attend a
talk at FOSDEM which mentioned patches to support SSL which is used by
Facebook to power their HipHop PHP system (i.e. it bypasses apache and
just accepts connections directly).

See here for the patch details:
https://github.com/facebook/hiphop-php
and the patch in question:
https://github.com/facebook/hiphop-php/blob/master/src/third_party/libevent-1.4.14.fb-changes.diff

Looking over it now a little, I'm not actually sure it's related to SSL
after all, but rather a bit more about exposing the fd (thus perhaps
helping to integrate it a bit easier) and also some async stuff which is
also presumably a good thing.

Anyway, just thought I'd share in case it's useful.

Cheers

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the systemd-devel mailing list