Граф коммитов

1253 Коммитов

Автор SHA1 Сообщение Дата
Martin Harriman eabab405f3 Android http client 2019-12-17 13:12:58 -08:00
kindbe 19370071b2 Fix format string in LOG_TRACE statement (#209)
Causes an AddressSanitizer issue
2019-12-17 10:07:15 -08:00
kindbe 89a1419bd4 Switch Mac to use the obj-c HttpClient implementation (#200)
* Change HttpClient_iOS to HttpClient_Apple and use on Mac

* Update modules

* Fix merge issue

* Seaparate iOS network information impl

* Properly scope Mac NetworkInformationImpl in CmakeLists.txt

* Create a BUILD_APPLE_HTTP build option

* Wrap BUILD_APPLE_HTTP option in a platform check
2019-12-11 09:43:05 -08:00
Matthew Koscumb 3e79b38f1a Merge pull request #201 from microsoft/makoscum-use-util-string-conversions
Update some WString <-> String Conversions
2019-12-10 13:24:20 -08:00
Max Golovanov 5805416eb1 Merge branch 'master' into makoscum-use-util-string-conversions 2019-12-10 09:09:45 -08:00
Max Golovanov e917fee312 Merge pull request #206 from microsoft/user/jasbray/add_header
Add Wincrypt header for cert pinning
2019-12-10 09:04:36 -08:00
Jason Bray 40b358350a Add wincrypt header for cert pinning 2019-12-09 18:16:21 -08:00
Matthew Koscumb 7558802ae7 Merge branch 'master' into makoscum-use-util-string-conversions 2019-12-09 12:22:46 -08:00
Matthew Koscumb b8b5d551e8 Merge pull request #205 from microsoft/makoscum-remove-onload-heap-allocation-in-pal
Move an on-load heap allocation to magic static
2019-12-09 12:17:42 -08:00
Matthew Koscumb ce7c0526ac Merge branch 'master' into makoscum-use-util-string-conversions 2019-12-09 10:38:42 -08:00
Matthew Koscumb bf45014d54 Merge branch 'master' into makoscum-remove-onload-heap-allocation-in-pal 2019-12-09 09:47:26 -08:00
Matthew Koscumb 53479a155e Merge pull request #202 from microsoft/makoscum-fix-IHttpClient-dtors
Clean up some IHttpClient.hpp destructors
2019-12-09 09:39:18 -08:00
Matthew Koscumb 3a4b83b67a Merge branch 'master' into makoscum-remove-onload-heap-allocation-in-pal 2019-12-09 08:56:14 -08:00
Matt Koscumb 11806e7f7a Constructing a namespace scoped std::string will involve a heap allocation for strings longer than 8 characters (with MSVC, about 10 characters last I checked for libc++ and libstdc++). Move the sdkVersion string to a method scoped magic static so it's only constructed on the first call to that method. 2019-12-06 15:31:10 -08:00
Matthew Koscumb 2a8d332600 Merge branch 'master' into makoscum-fix-IHttpClient-dtors 2019-12-06 14:42:10 -08:00
Matthew Koscumb 3bd0201e33 Merge branch 'master' into makoscum-use-util-string-conversions 2019-12-06 14:41:23 -08:00
Matt Koscumb b2dce0fc4b MSVC (and older versions of Clang and GCC) treat {} as a UDF and so some optimizations may be avoided. Setting these to '= default' allows the compiler to perform addional optimization steps. Also removed some unnecessary destructors. 2019-12-06 12:44:36 -08:00
Matt Koscumb 7bee6f19db Move from TCHAR to whchar_t, since GetModuleFileName takes a LPWSTR, not a TCHAR* 2019-12-06 12:06:26 -08:00
Matt Koscumb aaf407954a Use the to_utf8_string method in from_platform_string 2019-12-06 12:05:25 -08:00
Matt Koscumb d006a1be3d Invoke to_utf8_string rather than using the Iterator constructor. 2019-12-06 12:04:28 -08:00
Max Golovanov fe9a344996 Merge pull request #199 from microsoft/maxgolov/wininet_cert_pinning
Implementation of MS-Root check for WinInet HTTP client
2019-12-06 09:54:58 -08:00
Max Golovanov eaaded3381 Update lib/modules to latest 2019-12-05 14:36:11 -08:00
Max Golovanov 6df36a7b66 Temporarily disable LogManager_KilledEventsAreDropped (issue #150) 2019-12-05 14:19:28 -08:00
Max Golovanov 4b8450f48a - Addressing code review comments
- Merge branch 'master' of https://github.com/Microsoft/cpp_client_telemetry into maxgolov/wininet_cert_pinning
2019-12-05 13:57:33 -08:00
Max Golovanov 99ce08eb3a Implementation of MS-Root check for WinInet HTTP client 2019-12-04 15:38:56 -08:00
kindbe b61d431810 Change a handful of new/deletes to smart pointers (#198)
* Submodule update

* HttpClientFactory returns a shared_ptr instead of a raw pointer

* Update modules

* Consistent HttpClientFactory::Create behavior for iOS

* Use std::make_shared

* Fixup whitespace
2019-12-03 17:41:17 -08:00
Max Golovanov 12b3813b07 Merge pull request #187 from microsoft/private/belew/mip-delayload
Add delay-loads to the MIP build props for improved performance.
2019-11-22 10:19:55 -08:00
Max Golovanov 3a79d3456d Merge branch 'master' into private/belew/mip-delayload 2019-11-21 10:14:44 -08:00
eduardo-camacho 05416a0e1c Merge pull request #188 from microsoft/eduardo-camacho/feature/eduardoc-objectivec_wrapper
Add Objective-C Wrappers to SDK
2019-11-21 09:52:01 -08:00
Eduardo Camacho Camacho 42450f9fd3 Merge branch 'eduardo-camacho/feature/eduardoc-objectivec_wrapper' of https://github.com/microsoft/cpp_client_telemetry into eduardo-camacho/feature/eduardoc-objectivec_wrapper 2019-11-20 16:16:00 -08:00
Eduardo Camacho Camacho b5e6dbf64c Address second iteration CR comments 2019-11-20 16:15:39 -08:00
Max Golovanov 44ab7fc9bb Merge branch 'master' into eduardo-camacho/feature/eduardoc-objectivec_wrapper 2019-11-20 15:36:34 -08:00
Max Golovanov 359c8b36ea Merge branch 'master' into private/belew/mip-delayload 2019-11-20 15:18:31 -08:00
Max Golovanov b14c2a5cfd Merge pull request #185 from microsoft/user/jasbray/bad_clock_fix
Port fix for bad clock deltas causing direct upload events to stop sending
2019-11-20 15:18:09 -08:00
Eduardo Camacho Camacho a6b3cb0f7d Rename functions to match CamelCase 2019-11-20 10:19:39 -08:00
Eduardo Camacho Camacho 4955a6501a Update build error on Ubuntu 2019-11-19 11:49:23 -08:00
Eduardo Camacho Camacho f7fdc110bc Add Objective-C Wrappers to SDK 2019-11-18 14:44:46 -08:00
Jason Bray 5d7f094aaa Update TaskDispatcher for unsigned target time 2019-11-15 14:24:37 -08:00
Jason Bray 91bd501821 Update data upload fix for WorkerThread 2019-11-15 13:40:37 -08:00
Max Golovanov 23f78d0297 Merged PR 1285697: Edge browser data upload issue
Edge browser experiences the following problem that is most often associated with device going into sleep state:

- upload task is scheduled by TPM
- but is not getting picked up for processing by Worker Thread

The fix is to assume that the monotonic clock value returned by libc++ steady_clock implementation may occasionally return negative, and/or value that is not from the previous range of values. e.g. when device wakes up from sleep - it appears that the monotonic clock could restart from value that is way lower than the previous ones, thus causing the scheduled upload task to never run. Add various ways to clamp the range of valid task timers:

- if upload task has not been executed within the range, cancel the previous one and force it to happen again.
- if any worker thread task is scheduled for more than 1+ hour in future from now, schedule it for precisely 1 hour from now.

1DS SDK Unit and Functional tests are passing.
2019-11-15 13:40:27 -08:00
Ben Lewis (REDMOND) 726dfc97da Add delay-loads to the MIP build props for improved performance. 2019-11-12 16:46:23 -08:00
Max Golovanov d58a779142 Merge pull request #180 from microsoft/globalizationpreferences_exception
Catch exceptions thrown by GlobalizationPreferences::Languages
2019-11-07 09:57:15 -08:00
Max Golovanov 345e5859e2 Merge branch 'master' into globalizationpreferences_exception 2019-11-06 11:18:47 -08:00
Max Golovanov d54e725cbb Merge pull request #179 from microsoft/private/viherasi/removewinrt
Disable WinRT dependencies
2019-11-06 10:53:57 -08:00
Chad Morrison fd5bbf4211 Merge branch 'globalizationpreferences_exception' of https://github.com/Chad-/cpp_client_telemetry into globalizationpreferences_exception 2019-11-06 10:46:33 -08:00
Chad Morrison e7bb62a117 Restrict GlobalizationPreferences::Languages exception capture to AccessDeniedException 2019-11-06 10:44:48 -08:00
Vitaliy Gerasimov 99b5927a7e CR #1 2019-11-05 14:30:17 -08:00
Vitalii Herasimov 6be1b8f2fd Merge branch 'master' into private/viherasi/removewinrt 2019-11-05 13:37:41 -08:00
Vitaliy Gerasimov 4b48e45c0a Remove winrt 2019-11-05 09:55:44 -08:00
Max Golovanov f713fbb873 Merge branch 'master' into globalizationpreferences_exception 2019-11-04 19:56:51 -08:00