dovecot-2.2: lib-http: Added data stack frame to avoid unnecessa...

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 10 14:52:29 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/e8f366822a59
changeset: 16263:e8f366822a59
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 10 14:51:37 2013 +0300
description:
lib-http: Added data stack frame to avoid unnecessary data stack wasting.

diffstat:

 src/lib-http/http-client-request.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 61ee2da538e1 -r e8f366822a59 src/lib-http/http-client-request.c
--- a/src/lib-http/http-client-request.c	Wed Apr 10 14:17:41 2013 +0300
+++ b/src/lib-http/http-client-request.c	Wed Apr 10 14:51:37 2013 +0300
@@ -365,8 +365,8 @@
 	return ret < 0 ? -1 : 0;
 }
 
-int http_client_request_send(struct http_client_request *req,
-			     const char **error_r)
+static int http_client_request_send_real(struct http_client_request *req,
+					 const char **error_r)
 {
 	struct http_client_connection *conn = req->conn;
 	struct ostream *output = conn->conn.output;
@@ -435,6 +435,17 @@
 	return ret;
 }
 
+int http_client_request_send(struct http_client_request *req,
+			     const char **error_r)
+{
+	int ret;
+
+	T_BEGIN {
+		ret = http_client_request_send_real(req, error_r);
+	} T_END;
+	return ret;
+}
+
 bool http_client_request_callback(struct http_client_request *req,
 			     struct http_response *response)
 {


More information about the dovecot-cvs mailing list