Mercurial > pidgin
diff src/protocols/msn/contact.c @ 19816:1aa5494587e8
[gaim-migrate @ 16973]
change the soap process to below:
Post one Soap request
After finish one soap request,close the connection,
If there are more, reconect and process it.
to avoid the below problem:
in one socket, If post soap request one by one, The second will always read 0 bytes.
comitted by Ma Yuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Tue, 22 Aug 2006 06:10:01 +0000 |
parents | da1075366756 |
children | 1b6c631012d9 |
line wrap: on
line diff
--- a/src/protocols/msn/contact.c Tue Aug 22 02:55:14 2006 +0000 +++ b/src/protocols/msn/contact.c Tue Aug 22 06:10:01 2006 +0000 @@ -179,8 +179,6 @@ } xmlnode_free(node); - - msn_get_address_book(contact); } static void @@ -197,6 +195,10 @@ // gaim_debug_misc("msn", "soap contact server Reply: {%s}\n", soapconn->read_buf); msn_parse_contact_list(contact); + /*free the read buffer*/ + msn_soap_free_read_buf(soapconn); + + msn_get_address_book(contact); } static void @@ -420,6 +422,8 @@ // gaim_debug_misc("msn", "soap contact server Reply: {%s}\n", soapconn->read_buf); msn_parse_addressbook(contact); + /*free the read buffer*/ + msn_soap_free_read_buf(soapconn); } /**/