[Geany-devel] Replacing the control socket with dbus

Arthur Skowronek arthur.s at xxxxx
Sun Jan 1 19:47:41 UTC 2012


Hi guys,

I guess I have do admit defeat here since I don't have any more
arguments for supporting my suggestion.

On 01.01.2012 01:49, Matthew Brush wrote:
> As the others have said the two key issues here are 1) too new GTK/GLib
> version and 2) dependence on DBus which I'm going to guess isn't easily
> working and installable on Win32/OSX?

My main intention here was to render the wire protocol obsolete. It's
serving its job but in my opinion it is way to fragile:
 - the socket itself is prone to race conditions and stays in the
   file system after a crash (luckily crashes are unlikely)
 - the protocol itself is prone to a dry lock in the "doclist" command
 - poorly written client code can dead lock geany for a few seconds

At first my goal was to improve the protocol by using something like
zeromq for message passing and attaching the socket handling into glib's
main loop code by using GSource and using bson for the wire protocol
itself (pretty over engineered, huh?)

But then I thought about using dbus because it would fix both issues
with a single stroke and stumbled GApplication which offers all required
functionality and therefore thought it would be the proper solution for
this issue.

> 
> There's lots of other stuff you can help out with though :)

I've gathered some expertise in using zeromq and wanted to share it. I
think I'll go back into lurk mode and wait for something to pop up and I
can help on.

Thanks for spending time on my suggestion.

> 
> Cheers,
> Matthew Brush
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Greetings,
Arthur



More information about the Devel mailing list