Mercurial > pidgin
changeset 16078:783b05e528b0
MSN nexus servers seem to have started reporting HTTP 503 Service Unavailable
errors recently and we were not handling that well. Hopefully this fixes it.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 12 Apr 2007 17:03:40 +0000 |
parents | ce85859d2f41 |
children | 6dedf7542b44 |
files | libpurple/protocols/msn/nexus.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/nexus.c Thu Apr 12 05:26:43 2007 +0000 +++ b/libpurple/protocols/msn/nexus.c Thu Apr 12 17:03:40 2007 +0000 @@ -252,6 +252,10 @@ msn_session_set_error(session, MSN_ERROR_AUTH, error); } + else if (strstr(nexus->read_buf, "HTTP/1.1 503 Service Unavailable")) + { + msn_session_set_error(session, MSN_ERROR_SERV_UNAVAILABLE, NULL); + } else if (strstr(nexus->read_buf, "HTTP/1.1 200 OK")) { char *base, *c;