diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-08 20:21:00 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-08 20:21:00 +0200 |
commit | 9d8a7af46091d218b200562fd58c821331c7754a (patch) | |
tree | 28e44a4b3b40472d488ee1654aa83cad9644657f /plugins/vfs_curl/vfs_curl.c | |
parent | f313bf3ebd8de2b87351e2bbae29fcb3656bae46 (diff) |
fixed timeout handling if curl request fails before first write callback occurs
Diffstat (limited to 'plugins/vfs_curl/vfs_curl.c')
-rw-r--r-- | plugins/vfs_curl/vfs_curl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/vfs_curl/vfs_curl.c b/plugins/vfs_curl/vfs_curl.c index 146dbe0c..e4fbd651 100644 --- a/plugins/vfs_curl/vfs_curl.c +++ b/plugins/vfs_curl/vfs_curl.c @@ -540,6 +540,7 @@ http_thread_func (void *ctx) { } // fp->status = STATUS_INITIAL; trace ("vfs_curl: calling curl_easy_perform (status=%d)...\n", fp->status); + gettimeofday (&fp->last_read_time, NULL); status = curl_easy_perform (curl); trace ("vfs_curl: curl_easy_perform retval=%d\n", status); if (status != 0) { |