diff options
author | Eunyoung Lee <ey928.lee@samsung.com> | 2017-12-21 09:56:06 +0900 |
---|---|---|
committer | Eunyoung Lee <ey928.lee@samsung.com> | 2017-12-21 09:56:06 +0900 |
commit | 41e5f89c59e1ff79caad68388660be02e8876380 (patch) | |
tree | c27faeb1e5b50edf67fad9ae1c234de135190405 /src | |
parent | ddfad98d2a8d17983ebbf0e5886125038ecc30f4 (diff) | |
download | rcc-41e5f89c59e1ff79caad68388660be02e8876380.tar.gz rcc-41e5f89c59e1ff79caad68388660be02e8876380.tar.bz2 rcc-41e5f89c59e1ff79caad68388660be02e8876380.zip |
Added REQ_TIMEOUT (7L)
Change-Id: I4b0a104cc234f330c0278a67feaa38a664a9b742
Diffstat (limited to 'src')
-rw-r--r-- | src/webutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webutil.c b/src/webutil.c index 2c55298..f498071 100644 --- a/src/webutil.c +++ b/src/webutil.c @@ -29,6 +29,7 @@ #define URI_PATH_LEN 64 #define REQ_CON_TIMEOUT 5L +#define REQ_TIMEOUT 7L typedef struct _wu_json_handle { JsonBuilder *builder; @@ -114,6 +115,7 @@ int web_util_noti_post(const char *resource, const char *json_data) curl_easy_setopt(curl, CURLOPT_POSTFIELDS, json_data); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _post_response_write_callback); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, REQ_CON_TIMEOUT); + curl_easy_setopt(curl, CURLOPT_TIMEOUT, REQ_TIMEOUT); response = curl_easy_perform(curl); |