/pidgin/main: 02dded224534: msn: Increase maximum accepted SOAP ...

Elliott Sales de Andrade qulogic at pidgin.im
Wed Nov 12 02:54:41 EST 2014


Changeset: 02dded2245346dd2218b0e7a9ecfac5ff9e613c1
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2014-11-12 02:54 -0500
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/02dded224534

Description:

msn: Increase maximum accepted SOAP response size.

Actually, 2 MiB is enough to download my contact list, but since this
XML stuff is super-verboase, I increased the cap quite a bit just in
case.

diffstat:

 libpurple/protocols/msn/soap.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/libpurple/protocols/msn/soap.c b/libpurple/protocols/msn/soap.c
--- a/libpurple/protocols/msn/soap.c
+++ b/libpurple/protocols/msn/soap.c
@@ -256,6 +256,7 @@ msn_soap_service_send_message_simple(Msn
 	sreq->message = message;
 
 	hreq = purple_http_request_new(url);
+	purple_http_request_set_max_len(hreq, 16 * 1024 * 1024);
 	purple_http_request_set_method(hreq, "POST");
 	purple_http_request_set_keepalive_pool(hreq, soaps->keepalive_pool);
 	purple_http_request_header_set(hreq, "SOAPAction",



More information about the Commits mailing list