grive2/libgrive/src/protocol
Visa Putkinen 84785ec473 Fix hang when upload receives HTTP 500
When an uploading PUT request got a HTTP 500 as reponse, grive hanged
forever inside libcurl. This was because the File parameter was not
rewound to 0 position on retry. The XmlResponse had to be cleared as
well.

Rewinding the File and clearing the XmlResponse were not enough to fix
the problem, because when retrying after 500, HTTP 410 Gone or 412
Precondition failed is often received, and CheckHttpResponse would throw
an exception that crashes grive. Therefore, I implemented a retry logic
to Resource::Upload that retries the whole upload transaction if 410 or
412 was received.
2013-11-27 00:15:24 +02:00
..
AuthAgent.cc Fix hang when upload receives HTTP 500 2013-11-27 00:15:24 +02:00
AuthAgent.hh using DataStream instead of Receiveable 2013-04-29 23:47:32 +08:00
Json.cc refactored old GDoc API into v1 namespace. using v2 namespace for new Google Drive API 2013-04-29 23:47:33 +08:00
Json.hh can show tree now, but still has issues 2013-04-29 23:47:33 +08:00
JsonResponse.cc using DataStream instead of Receiveable 2013-04-29 23:47:32 +08:00
JsonResponse.hh using DataStream instead of Receiveable 2013-04-29 23:47:32 +08:00
OAuth2.cc merged compile fixes from LemonBoy #58 2012-06-11 23:37:15 +08:00
OAuth2.hh Merge branch 'massix' 2012-05-02 23:30:49 +08:00