comparison src/protocols/msn/httpmethod.c @ 9085:9885420f049f

[gaim-migrate @ 9862] Fixed a bug in MSN's HTTP connect method. It would sometimes enter a state where it would send no new data, but would keep queueing data indefinitely. Patch by Andrew Wellington. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 27 May 2004 05:51:01 +0000
parents 06f57183e29f
children c30d81b4dd22
comparison
equal deleted inserted replaced
9084:d9640b38a65b 9085:9885420f049f
116 g_return_val_if_fail(servconn != NULL, 0); 116 g_return_val_if_fail(servconn != NULL, 0);
117 g_return_val_if_fail(buf != NULL, 0); 117 g_return_val_if_fail(buf != NULL, 0);
118 g_return_val_if_fail(size > 0, 0); 118 g_return_val_if_fail(size > 0, 0);
119 g_return_val_if_fail(servconn->http_data != NULL, 0); 119 g_return_val_if_fail(servconn->http_data != NULL, 0);
120 120
121 if (servconn->http_data->waiting_response || 121 if (servconn->http_data->waiting_response)
122 servconn->http_data->queue != NULL)
123 { 122 {
124 MsnHttpQueueData *queue_data = g_new0(MsnHttpQueueData, 1); 123 MsnHttpQueueData *queue_data = g_new0(MsnHttpQueueData, 1);
125 124
126 queue_data->servconn = servconn; 125 queue_data->servconn = servconn;
127 queue_data->buffer = g_strdup(buf); 126 queue_data->buffer = g_strdup(buf);