Mercurial > pidgin
diff src/protocols/msn/httpmethod.c @ 8299:7402101c0319
[gaim-migrate @ 9023]
Ladies and gentlemen, MSN port 80 connect method.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 20 Feb 2004 22:11:56 +0000 |
parents | c719f9a181d4 |
children | 06f57183e29f |
line wrap: on
line diff
--- a/src/protocols/msn/httpmethod.c Fri Feb 20 21:37:45 2004 +0000 +++ b/src/protocols/msn/httpmethod.c Fri Feb 20 22:11:56 2004 +0000 @@ -58,8 +58,10 @@ if (servconn->http_data->dirty) { +#if 0 gaim_debug_info("msn", "Polling server %s.\n", servconn->http_data->gateway_ip); +#endif msn_http_servconn_poll(servconn); } } @@ -72,7 +74,6 @@ { if (session->http_poll_timer) { - gaim_debug(GAIM_DEBUG_INFO, "msn", "Stopping timer\n"); gaim_timeout_remove(session->http_poll_timer); session->http_poll_timer = 0; } @@ -83,8 +84,7 @@ { stop_timer(session); - gaim_debug(GAIM_DEBUG_INFO, "msn", "Starting timer\n"); - session->http_poll_timer = gaim_timeout_add(5000, http_poll, session); + session->http_poll_timer = gaim_timeout_add(2000, http_poll, session); } void @@ -179,7 +179,7 @@ g_free(params); -#if 1 +#if 0 gaim_debug_misc("msn", "Writing HTTP to fd %d: {%s}\n", servconn->fd, temp); #endif @@ -239,7 +239,9 @@ servconn->http_data->session_id, servconn->http_data->gateway_ip); +#if 0 gaim_debug_misc("msn", "Writing to HTTP: {%s}\n", temp); +#endif s = write(servconn->fd, temp, strlen(temp)); @@ -271,7 +273,9 @@ g_return_val_if_fail(ret_size != NULL, FALSE); g_return_val_if_fail(error != NULL, FALSE); +#if 0 gaim_debug_info("msn", "parsing data {%s} from fd %d\n", buf, servconn->fd); +#endif servconn->http_data->waiting_response = FALSE; gc = gaim_account_get_connection(servconn->session->account); @@ -317,7 +321,9 @@ s += 4; /* Skip \r\n */ body = g_strndup(s, size - (s - buf)); +#if 0 gaim_debug_misc("msn", "Incoming HTTP buffer: {%s\r\n%s}", headers, body); +#endif if ((s = strstr(headers, "Content-Length: ")) != NULL) {