From 8234832e06e873df035270f162d7d151fbf6e7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 4 Sep 2016 14:04:49 +0000 Subject: Facebook: Massive rewrite of all communication requests Note it doesn't use persistent connection yet. git-svn-id: http://svn.miranda-ng.org/main/trunk@17246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/http_request.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'protocols/FacebookRM/src/http_request.h') diff --git a/protocols/FacebookRM/src/http_request.h b/protocols/FacebookRM/src/http_request.h index ec5c424b57..86a23cb5c8 100644 --- a/protocols/FacebookRM/src/http_request.h +++ b/protocols/FacebookRM/src/http_request.h @@ -233,6 +233,8 @@ public: HttpRequestUrl Url; HttpRequestHeaders Headers; HttpRequestBody Body; + + bool NotifyErrors; HttpRequest(int type, LPCSTR url) : Url(*this, url), Headers(*this) @@ -241,6 +243,9 @@ public: flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_DUMPASTEXT; requestType = type; pData = NULL; + timeout = 20 * 1000; + + NotifyErrors = true; } HttpRequest(int type, HttpRequestUrlFormat, LPCSTR urlFormat, ...) @@ -251,6 +256,9 @@ public: requestType = type; va_end(formatArgs); pData = NULL; + timeout = 20 * 1000; + + NotifyErrors = true; } virtual ~HttpRequest() -- cgit v1.2.3