Fixes blocking_request. Adds LegacyPolledResponder and BlockingResponder.

XMLRPCResponder also uses the new LegacyPolledResponder now.
Renamed http_result() -> http_status().
This commit is contained in:
Aleric Inglewood
2012-10-22 18:54:23 +02:00
parent b92de9beb5
commit 768f1b5710
7 changed files with 143 additions and 127 deletions

View File

@@ -158,14 +158,12 @@ XMLRPC_VALUE LLXMLRPCValue::getValue() const
void XMLRPCResponder::completed_headers(U32 status, std::string const& reason, CURLcode code, AICurlInterface::TransferInfo* info)
{
mCode = code;
if (info)
{
mTransferInfo = *info;
}
mStatus = status;
mReason = reason;
// Note: 'status' and 'reason' are the same as what is passed to completedRaw.
// Call base class implementation.
LegacyPolledResponder::completed_headers(status, reason, code, info);
}
void XMLRPCResponder::completedRaw(U32 status, std::string const& reason, LLChannelDescriptors const& channels, buffer_ptr_t const& buffer)