Re: GDBus socket code ...



On Wed, 2010-08-11 at 12:52 +0100, Michael Meeks wrote:

> 	In historic types in ORBit2 / linc - we had a custom GSource (which
> IMHO is well worth stealing), for which we could strobe the poll
> conditions easily [ though perhaps in glib that is easier anyway ].
> 
> 	Thus - when we hit an EAGAIN on write, we would immediately switch our
> poll to wait until there is space on the socket buffer (G_IO_OUT), and
> get on with processing any other data / backlog and/or sleep.

Note that gmain wasn't designed for this, and it was a source of
mysterious crashers throughout gnome until someone smart tracked it down
a couple of years ago. GLib is robust against it now, though.

https://bugzilla.gnome.org/show_bug.cgi?id=523463

- Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]