Skip to content

Commit 95d250b

Browse files
committed
Merge branch 'development' of https://git01.codeplex.com/casablanca into connection_pool_race
2 parents 4a00611 + 62e50bd commit 95d250b

File tree

88 files changed

+4543
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+4543
-216
lines changed

Build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<CppRestBaseFileName>cpprest</CppRestBaseFileName>
55
<CppRestSDKVersionMajor>2</CppRestSDKVersionMajor>
6-
<CppRestSDKVersionMinor>3</CppRestSDKVersionMinor>
6+
<CppRestSDKVersionMinor>4</CppRestSDKVersionMinor>
77
<CppRestSDKVersionRevision>0</CppRestSDKVersionRevision>
88
<CppRestSDKVersionFileSuffix>$(CppRestSDKVersionMajor)_$(CppRestSDKVersionMinor)</CppRestSDKVersionFileSuffix>
99
<CppRestSDKVersionString>$(CppRestSDKVersionMajor).$(CppRestSDKVersionMinor)</CppRestSDKVersionString>

Release/include/cpprest/asyncrt_utils.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ class datetime
385385
/// <summary>
386386
/// Creates <c>datetime</c> from a string representing time in UTC in RFC 1123 format.
387387
/// </summary>
388+
/// <returns>Returns a <c>datetime</c> of zero if not successful.</returns>
388389
static _ASYNCRTIMP datetime __cdecl from_string(const utility::string_t& timestring, date_format format = RFC_1123);
389390

390391
/// <summary>
@@ -465,14 +466,15 @@ class datetime
465466
// void* to avoid pulling in windows.h
466467
static _ASYNCRTIMP bool __cdecl datetime::system_type_to_datetime(/*SYSTEMTIME*/ void* psysTime, uint64_t seconds, datetime * pdt);
467468
#else
468-
static datetime timeval_to_datetime(struct timeval time);
469+
static datetime timeval_to_datetime(const timeval &time);
469470
#endif
470471

471472
// Private constructor. Use static methods to create an instance.
472473
datetime(interval_type interval) : m_interval(interval)
473474
{
474475
}
475476

477+
// Storing as hundreds of nanoseconds 10e-7, i.e. 1 here equals 100ns.
476478
interval_type m_interval;
477479
};
478480

Release/include/cpprest/details/http_client_impl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ class request_context
188188
http_request m_request;
189189
http_response m_response;
190190

191-
std::exception_ptr m_exceptionPtr;
192-
193191
utility::size64_t m_uploaded;
194192
utility::size64_t m_downloaded;
195193

@@ -204,7 +202,6 @@ class request_context
204202
request_context(const std::shared_ptr<_http_client_communicator> &client, const http_request &request)
205203
: m_http_client(client),
206204
m_request(request),
207-
m_exceptionPtr(),
208205
m_uploaded(0),
209206
m_downloaded(0)
210207
{

Release/include/cpprest/details/http_helpers.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ namespace details
9595
utf16string convert_utf16be_to_utf16le(utf16string src, bool erase_bom);
9696

9797
// simple helper functions to trim whitespace.
98-
void ltrim_whitespace(utility::string_t &str);
99-
void rtrim_whitespace(utility::string_t &str);
100-
void trim_whitespace(utility::string_t &str);
98+
_ASYNCRTIMP void ltrim_whitespace(utility::string_t &str);
99+
_ASYNCRTIMP void rtrim_whitespace(utility::string_t &str);
100+
_ASYNCRTIMP void trim_whitespace(utility::string_t &str);
101101

102102
bool validate_method(const utility::string_t& method);
103103

Release/include/cpprest/filestream.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ namespace details {
703703
return pplx::create_task(result_tce);
704704
}
705705

706-
basic_file_buffer(_In_ _file_info *info) : m_info(info), streambuf_state_manager<_CharType>(info->m_mode) { }
706+
basic_file_buffer(_In_ _file_info *info) : streambuf_state_manager<_CharType>(info->m_mode), m_info(info) { }
707707

708708
#if !defined(__cplusplus_winrt)
709709
static pplx::task<std::shared_ptr<basic_streambuf<_CharType>>> open(
@@ -825,7 +825,7 @@ namespace details {
825825
class _filestream_callback_read : public details::_filestream_callback
826826
{
827827
public:
828-
_filestream_callback_read(_In_ _file_info *info, pplx::task_completion_event<size_t> op) : m_op(op), m_info(info) { }
828+
_filestream_callback_read(_In_ _file_info *info, pplx::task_completion_event<size_t> op) : m_info(info), m_op(op) { }
829829

830830
virtual void on_completed(size_t result)
831831
{
@@ -849,7 +849,7 @@ namespace details {
849849
class _filestream_callback_putc : public details::_filestream_callback
850850
{
851851
public:
852-
_filestream_callback_putc(_In_ _file_info *info, pplx::task_completion_event<int_type> op, _CharType ch) : m_info(info), m_ch(ch), m_op(op) { }
852+
_filestream_callback_putc(_In_ _file_info *info, pplx::task_completion_event<int_type> op, _CharType ch) : m_info(info), m_op(op), m_ch(ch) { }
853853

854854
virtual void on_completed(size_t result)
855855
{
@@ -879,7 +879,7 @@ namespace details {
879879
class _filestream_callback_bumpc : public details::_filestream_callback
880880
{
881881
public:
882-
_filestream_callback_bumpc(_In_ _file_info *info, pplx::task_completion_event<int_type> op) : m_op(op), m_ch(0), m_info(info) { }
882+
_filestream_callback_bumpc(_In_ _file_info *info, pplx::task_completion_event<int_type> op) : m_ch(0), m_info(info), m_op(op) { }
883883

884884
virtual void on_completed(size_t result)
885885
{
@@ -911,7 +911,7 @@ namespace details {
911911
class _filestream_callback_getc : public details::_filestream_callback
912912
{
913913
public:
914-
_filestream_callback_getc(_In_ _file_info *info, pplx::task_completion_event<int_type> op) : m_op(op), m_ch(0), m_info(info) { }
914+
_filestream_callback_getc(_In_ _file_info *info, pplx::task_completion_event<int_type> op) : m_ch(0), m_info(info), m_op(op) { }
915915

916916
virtual void on_completed(size_t result)
917917
{

Release/include/cpprest/interopstream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace Concurrency { namespace streams {
5757
/// Private constructor
5858
/// </summary>
5959
basic_stdio_buffer(_In_ std::basic_streambuf<_CharType>* streambuf, std::ios_base::openmode mode)
60-
: m_buffer(streambuf), streambuf_state_manager<_CharType>(mode)
60+
: streambuf_state_manager<_CharType>(mode), m_buffer(streambuf)
6161
{
6262
}
6363

Release/include/cpprest/rawptrstream.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ namespace Concurrency { namespace streams {
417417
basic_rawptr_buffer(const _CharType* data, size_t size)
418418
: streambuf_state_manager<_CharType>(std::ios_base::in),
419419
m_data(const_cast<_CharType*>(data)),
420-
m_current_position(0),
421-
m_size(size)
420+
m_size(size),
421+
m_current_position(0)
422422
{
423423
validate_mode(std::ios_base::in);
424424
}
@@ -432,8 +432,8 @@ namespace Concurrency { namespace streams {
432432
basic_rawptr_buffer(_CharType* data, size_t size, std::ios_base::openmode mode)
433433
: streambuf_state_manager<_CharType>(mode),
434434
m_data(data),
435-
m_current_position(0),
436-
m_size(size)
435+
m_size(size),
436+
m_current_position(0)
437437
{
438438
validate_mode(mode);
439439
}

Release/include/cpprest/streams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ class type_parser<CharType,int64_t> : public _type_parser_base<CharType>
13281328
template <typename FloatingPoint>
13291329
struct _double_state
13301330
{
1331-
_double_state() : result(0), minus(0), exponent(false), after_comma(0), exponent_number(0), exponent_minus(0), p_exception_string(), complete(false) {}
1331+
_double_state() : result(0), minus(0), after_comma(0), exponent(false), exponent_number(0), exponent_minus(0), complete(false), p_exception_string() {}
13321332

13331333
FloatingPoint result;
13341334
char minus; // 0 -- no sign, 1 -- plus, 2 -- minus

Release/include/cpprest/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* ==--==
1717
*/
1818
#define CPPREST_VERSION_REVISION 0
19-
#define CPPREST_VERSION_MINOR 3
19+
#define CPPREST_VERSION_MINOR 4
2020
#define CPPREST_VERSION_MAJOR 2
2121

2222
#define CPPREST_VERSION (CPPREST_VERSION_MAJOR*100000+CPPREST_VERSION_MINOR*100+CPPREST_VERSION_REVISION)

Release/nuget/cpprestsdk.nuspec

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<releaseNotes>"Release of C++ Rest SDK 2.3.0 libraries."</releaseNotes>
1616
<copyright>Copyright 2014</copyright>
1717
<tags>REST, native, C++, JSON, Casablanca, Http, Uri, WebSockets</tags>
18-
19-
<!-- OpenSSL dependency only necessary for Windows Desktop, but unless our package is split into smaller components it is required for all. -->
20-
<dependencies>
21-
<dependency id="openssl" version="1.0.1.25" />
22-
</dependencies>
2318
</metadata>
2419
<files>
2520
<!-- Include header files-->

0 commit comments

Comments
 (0)