[DF180926-00154] Add speed limit 48/191248/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 15 Oct 2018 04:22:00 +0000 (13:22 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 15 Oct 2018 04:22:06 +0000 (13:22 +0900)
commitf0364b08e6f4a07d1c6e83caa081371eb29fcffb
tree2c4ad0fa0f56abdb61807ad13a4c6f9010c715be
parent8376dd6892faa99d2dcb350b4a528dcaa705b7f7
[DF180926-00154] Add speed limit

downloading cannot be canceled in case of no packet.
It's because cancel request is depended on CURLOPT_WRITEFUNCTION.
Therefore, if there is no packet, downloading would be blocked without error.
This patch limits speed and time to prevent this issue.

Change-Id: I13d6538528254f88884d8573cd320608916a9561
agent/download-agent-plugin-libcurl.c
agent/include/download-agent-plugin-libcurl.h
packaging/download-provider.spec