diff options
author | Brian Cameron <brian.cameron@sun.com> | 2006-02-07 23:57:27 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2006-02-07 23:57:27 +0000 |
commit | 55230e8582165a3b96fe7e664428deec46ffeef6 (patch) | |
tree | 2508920aa5ae737297adfc929709f8aa5b029710 /daemon/errorgui.c | |
parent | be18056421a0241a2843e1a65727da2b8f390b68 (diff) | |
download | gdm-55230e8582165a3b96fe7e664428deec46ffeef6.tar.gz |
This patch resolves some performance issues that I noticed when testing
2006-02-07 Brian Cameron <brian.cameron@sun.com>
This patch resolves some performance issues that I noticed when
testing GDM with the gdmdynamic command. I notice that waiting for
the sockets to timeout made gdmdynamic slower so now all the clients
load all the configuration data in one quick pass and close the
socket. Since the gdm_config_get functions cache the data, the slaves
will not go over the socket to get the data again unless asked to
reread. Bump the maximum messages over the socket from 20 to 80
because gdmlogin pulls about 65 configuration parms over and this
allows all data to be accessed in one connection (and gives a little
room for growth). Improved the way GDM slaves deal with syslog so all
slaves use the same interfaces. Added three missing keys to the daemon
configuration handling code.
* daemon/gdmconfig.c: Add three keys that were missing for background
program support.
* gui/gdmcomm.[ch]: Now if there is a failure connecting to the daemon,
the slave will sleep 1 second before retry (normally retries 5
times). If all retries fail, it will not try sleeping on subsequent
calls to the daemon. This greatly improves performance when the
daemon is flooded with slave requests. In normal usage, this will
likely not happen, but it is good for GDM to not fail so easily.
Added better debug. Added gdm_comm_close function so that slaves
can ask to close the socket when done reading config. Now uses
common syslog functions.
* daemon/gdm.h: Add better comments, rename GDM_SUP_MAX_CONNECTIONS
to GDM_SUP_MAX_MESSAGES which is more accurate, and bump the max
number to 80.
* gui/gdmcommon.h, gui/gdmwm.h, gui/gdmsession.h: Added common syslog
functions to gdmcommon.h and moved some functions that were in
gdmcommon.h to gdmwm.h and gdmsession.h since the implementations
were in those c-files. Renamed functions to make naming consistant.
* gui/gdmXnestchooser, gui/gdmchooser.c, gui/gdmcommon.c,
gui/gdmconfig.c, gui/gdmdynamic.c, gui/gdmflexiserver.c,
gui/gdmlogin.c, gui/gdmphotosetup.c, gui/gdmsession.c, gui/gdmwm.c,
gui/greeter/greeter.c, gui/greeter/greeter_item_ulist.c,
gui/greeter/greeter_session.c, gui/greeter/greeter_system.c: Slaves
close sockets connection when done reading config. Now slaves use
common syslog functions. Naming changes to reflect renaming of
functions in gdmcommon.h/gdmwm.h/gdmsession.h. Better debug.
* daemon/auth.c, daemon/cookie.c, daemon/display.c, daemon/gdm.c,
daemon/gdm-net.c, daemon/misc.c, daemon/slave.c, daemon/xdmcp.c,
gui/gdmlanguages.c, gui/greeter/greeter_canvas_item.c,
gui/gdmsetup.c, vicious-extensions/ve-config.c: Make spacing around
"++" more consistant. Add better debug in some functions
Diffstat (limited to 'daemon/errorgui.c')
-rw-r--r-- | daemon/errorgui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/errorgui.c b/daemon/errorgui.c index 3c9fb933..176275d1 100644 --- a/daemon/errorgui.c +++ b/daemon/errorgui.c @@ -361,7 +361,7 @@ gdm_error_box_full (GdmDisplay *d, GtkMessageType type, const char *error, g_string_append (gs, buf); /* cap the lines at 500, that's already a possibility of 128k of data */ - if (lines ++ > 500) { + if (lines++ > 500) { loc = gdm_locale_to_utf8 (_("\n... File too long to display ...\n")); g_string_append (gs, loc); g_free (loc); |