grive2/libgrive/src
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
..
bfd used new exception classes 2012-05-13 15:27:58 +08:00
drive Fix hang when upload receives HTTP 500 2013-11-27 00:15:24 +02:00
drive2 using the new Json classes for bgrive 2013-05-03 00:40:04 +08:00
http Fix hang when upload receives HTTP 500 2013-11-27 00:15:24 +02:00
json using the new Json classes for bgrive 2013-05-03 00:40:04 +08:00
protocol Fix hang when upload receives HTTP 500 2013-11-27 00:15:24 +02:00
util added operator<< to print out json 2013-05-02 00:55:39 +08:00
xml Log XML on parse failure 2013-11-25 00:18:47 +02:00