Skip to contentSkip to conversation

conga/luci/conga_ssl SSLClient.cpp conga_ssl_l ...

Cluster-devel [email protected] 1 participant 1 message Jun 1, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Branch: EXPERIMENTAL
Changes by: rmccabe at sourceware.org 2007-06-01 23:09:57

Modified files:
luci/conga_ssl : SSLClient.cpp conga_ssl_lib.cpp

Log message:
performance fixes, pass 1:
- This code was using 1k buffers to read network data, and it would try to parse the data received so far each time throgh the read loop as XML.
- Increase read buffers to 4k, and don't try to parse them as XML. Since we know what the data coming in will look like (either <?xml ...><ricci ... /> or <ricci>....</ricci>, scan the input for that instead.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/conga_ssl/SSLClient.cpp.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.3&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/conga_ssl/conga_ssl_lib.cpp.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.3&r2=1.3.2.1

luci/conga_ssl/SSLClient.cpp +2 -2
@@ -1,5 +1,5 @@
 /*
-  Copyright Red Hat, Inc. 2005
+  Copyright Red Hat, Inc. 2005-2007
 
   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
@@ -284,7 +284,7 @@
   if (!_connected)
     throw String("cannot receive, yet: SSL connection not connected");
   
-  char buff[1024];
+  char buff[4096];
   
   unsigned int beg = time_mil();
   while (time_mil() < beg + timeout) {
luci/conga_ssl/conga_ssl_lib.cpp +53 -38

104 lines not on this page · raw message