Mercurial > dovecot > core-2.2
changeset 16263:e8f366822a59
lib-http: Added data stack frame to avoid unnecessary data stack wasting.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 10 Apr 2013 14:51:37 +0300 |
parents | 61ee2da538e1 |
children | 08602cf498ea |
files | src/lib-http/http-client-request.c |
diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {