Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
af1a54f2ad | |||
8a385449ce | |||
396a6985ae |
@ -1 +1 @@
|
|||||||
7.4.1
|
7.4.3
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [7.4.3] - 2019-12-03
|
||||||
|
|
||||||
|
- (http client) use std::unordered_map instead of std::map for HttpParameters and HttpFormDataParameters class aliases
|
||||||
|
|
||||||
|
## [7.4.2] - 2019-12-02
|
||||||
|
|
||||||
|
- (client) internal IXDNSLookup class requires a valid cancellation request function callback to be passed in
|
||||||
|
|
||||||
## [7.4.1] - 2019-12-02
|
## [7.4.1] - 2019-12-02
|
||||||
|
|
||||||
- (client) fix an overflow in the exponential back off code
|
- (client) fix an overflow in the exponential back off code
|
||||||
|
@ -29,8 +29,13 @@ namespace ix
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CancellationRequest cancellationRequest = []() -> bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
std::string errMsg;
|
std::string errMsg;
|
||||||
return _socket->connect(hostname, port, errMsg, nullptr);
|
return _socket->connect(hostname, port, errMsg, cancellationRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RedisClient::stop()
|
void RedisClient::stop()
|
||||||
|
@ -61,7 +61,7 @@ namespace ix
|
|||||||
errMsg = "no error";
|
errMsg = "no error";
|
||||||
|
|
||||||
// Maybe a cancellation request got in before the background thread terminated ?
|
// Maybe a cancellation request got in before the background thread terminated ?
|
||||||
if (isCancellationRequested && isCancellationRequested())
|
if (isCancellationRequested())
|
||||||
{
|
{
|
||||||
errMsg = "cancellation requested";
|
errMsg = "cancellation requested";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
@ -107,7 +107,7 @@ namespace ix
|
|||||||
std::this_thread::sleep_for(std::chrono::milliseconds(_wait));
|
std::this_thread::sleep_for(std::chrono::milliseconds(_wait));
|
||||||
|
|
||||||
// Were we cancelled ?
|
// Were we cancelled ?
|
||||||
if (isCancellationRequested && isCancellationRequested())
|
if (isCancellationRequested())
|
||||||
{
|
{
|
||||||
errMsg = "cancellation requested";
|
errMsg = "cancellation requested";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
@ -115,7 +115,7 @@ namespace ix
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Maybe a cancellation request got in before the bg terminated ?
|
// Maybe a cancellation request got in before the bg terminated ?
|
||||||
if (isCancellationRequested && isCancellationRequested())
|
if (isCancellationRequested())
|
||||||
{
|
{
|
||||||
errMsg = "cancellation requested";
|
errMsg = "cancellation requested";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "IXProgressCallback.h"
|
#include "IXProgressCallback.h"
|
||||||
#include "IXWebSocketHttpHeaders.h"
|
#include "IXWebSocketHttpHeaders.h"
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
{
|
{
|
||||||
@ -65,8 +66,8 @@ namespace ix
|
|||||||
};
|
};
|
||||||
|
|
||||||
using HttpResponsePtr = std::shared_ptr<HttpResponse>;
|
using HttpResponsePtr = std::shared_ptr<HttpResponse>;
|
||||||
using HttpParameters = std::map<std::string, std::string>;
|
using HttpParameters = std::unordered_map<std::string, std::string>;
|
||||||
using HttpFormDataParameters = std::map<std::string, std::string>;
|
using HttpFormDataParameters = std::unordered_map<std::string, std::string>;
|
||||||
using Logger = std::function<void(const std::string&)>;
|
using Logger = std::function<void(const std::string&)>;
|
||||||
using OnResponseCallback = std::function<void(const HttpResponsePtr&)>;
|
using OnResponseCallback = std::function<void(const HttpResponsePtr&)>;
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
*
|
*
|
||||||
* This is the right example to look at:
|
* This is the right example to look at:
|
||||||
* https://www.codeproject.com/Articles/1000189/A-Working-TCP-Client-and-Server-With-SSL
|
* https://www.codeproject.com/Articles/1000189/A-Working-TCP-Client-and-Server-With-SSL
|
||||||
|
*
|
||||||
|
* Similar code is available from this git repo
|
||||||
|
* https://github.com/david-maw/StreamSSL
|
||||||
*/
|
*/
|
||||||
#include "IXSocketSChannel.h"
|
#include "IXSocketSChannel.h"
|
||||||
|
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define IX_WEBSOCKET_VERSION "7.4.1"
|
#define IX_WEBSOCKET_VERSION "7.4.3"
|
||||||
|
Reference in New Issue
Block a user