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

588 Коммитов

Автор SHA1 Сообщение Дата
John L 4ede2c3dcb
Fix bug in WinHttp WebSocket (#647) 2021-12-21 10:05:57 -08:00
John L c39d82badd
Add missing deps to props file for GDK (#646) 2021-12-09 12:22:45 -08:00
John L 5d9a114023
Fixing some cleanup & memory issues in WinHttp (#645) 2021-12-06 18:57:05 -08:00
John L 0b321c270a
Adding support for VS toolset v143 (#644)
* v143 Support for Win32 & GDK
* Change to generating project files for each supported toolset from a single project template.
2021-12-03 15:04:19 -08:00
John L 8e28f5baf3
Make XCurl HTTP Provider cleanup fully asynchronous (#643)
* Fixes deadlock that occurs if callers use one single threaded manually dispatched queue for both HTTP calls and HCCleanupAsync
* Layered such that other HTTP providers can support async cleanup in the future
2021-11-30 13:35:33 -08:00
John L cd6651fdf5
Fix GDK build break when HC_NOWEBSOCKETS is specified (#642) 2021-11-18 16:04:42 -08:00
John L 6d65866efd
Fix link error on Win32 when building with HC_NOWEBSOCKETS set (#641) 2021-11-17 14:06:21 -08:00
tculotta 263f247beb
vs2022 projects should locate the v142 LHC projects (#640)
* vs2022 projects should locate the v142 LHC projects

* constraining 143/142 association to GDK for flexibility on other platforms
2021-11-17 11:09:56 -08:00
John L 3a7a491505
Set CURLOPT_NOBODY for XCurl HEAD requests (#639) 2021-11-12 14:38:03 -08:00
John L 19a2aaf96b
WinHttp should check network initialization status on GDK before begining WebSocket/Http calls (#638) 2021-11-11 15:45:06 -08:00
MSFT-Heba a52aec7beb
Fixing a typo in openssl.bash (#637)
Co-authored-by: heba <xlivexdevx@V-TKLIMEK-CON.redmond.corp.microsoft.com>
2021-11-11 13:31:52 -08:00
John L 710df0af8c
Another allocator bug (#636) 2021-11-10 13:32:49 -08:00
John L 691374b339
Fixing a couple of allocator bugs (#635) 2021-11-10 11:07:03 -08:00
John L 04f2adda51
Populate HCWebSocketHandle in WebSocket Send completion callback (#634) 2021-11-09 16:26:43 -08:00
Sahil Ashar 6db544995d
partial revert of #608, adding support for MinVersion 8.1 (#633) 2021-11-09 16:18:53 -06:00
John L 0021f5e8f6
Win32 to use WinHttp WebSockets if available (#627)
Improve implementation of platform default Http/WebSocket handler selection to allow for runtime selection of WinHttp WebSockets on Win32 if they are available (win 8+).  Changed all platform default providers to this same pattern for consistency.
2021-11-09 13:07:33 -08:00
Sahil Ashar 293574f963
update NDK version (#631) 2021-11-08 19:57:39 -06:00
Jason Sandlin d22c78aef1
Switching Win32 projects to use Win8.1 SDK (#608)
* Switching Win32 projects to use Win8.1 SDK

* PR

* Kicking PR build
2021-11-08 12:43:58 -08:00
Jason Sandlin b0bc8cd369
Updating to build images and build process (#630)
* Updating to build images and build process

* Updates
2021-11-08 12:00:48 -08:00
MSFT-Heba 8fa8c484eb
Fixing Win32 and iOS Builds (#628)
* Fixing typo affecting Win32 builds

* Fixing preprocessor flags

* Adding Result.h to xcode + fixing explicitly operators being implicitly deleted error

Co-authored-by: heba <xlivexdevx@Hebas-Mini.local>
2021-11-06 14:07:57 -07:00
John L c8ad087c0f
Reworking WinHttp stack to support handling PLM events (#625)
* Reworking WinHttp stack to support handling PLM events

* remove invalid assert

* Add some tracing, fix a bug after doing console suspend/resume testing
2021-10-25 21:55:45 -07:00
Sasha Weiss 2ce04eaac8
Expose tracing init/cleanup separately from overall libHttpClient init (#626)
* Expose tracing init/cleanup separately from overall libHttpClient init

* Add remarks about calling multiple times
2021-10-15 17:28:06 -07:00
Sasha Weiss 30b62191cf
When hitting an Android network failure, pass through and log the stack trace (#623)
* Pass network error stack traces through and log them on Android

* Some clang-tidy bits

* Don't use ArrayCritical on read function either

* Copy back on writes

* Some preemptive nits
2021-10-15 14:21:58 -07:00
Sasha Weiss 9da346fa4e
Fix unreferenced parameter build break in release (#624) 2021-10-15 14:15:29 -07:00
Sasha Weiss 5774e6b316
Set trace level to verbose/important based on configuration (#622)
* Set trace level to verbose/important based on configuration

* Build fix

* Set trace level separately in the props

Co-authored-by: sashaweiss <asashaweiss@gmail.com>
2021-10-14 15:02:21 -07:00
Luca Beltrami cb781dca7a
Switch to GetByteArrayElements from GetPrimitiveArrayCritical to avoid deadlock issues in JNI (#621)
* Switch to GetByteArrayElements from GetPrimitiveArrayCritical to avoid deadlock issues in JNI

* Build fixes
2021-10-13 16:20:19 -07:00
Chuy Galván 5803a302ca
Fix WinHttp SSL validation and other small fixes (#620)
* Bug fixes

* Change how we check the platform for SSL validation
2021-10-05 11:10:07 -07:00
MSFT-Heba 70c3ac97d2
Readding i386 for simulator support (#619)
* Readding i386 for simulator support
2021-10-02 10:27:23 -07:00
John L a053c7e65c
Import correct version of XCurl based on targeted GDK (#618) 2021-09-29 14:27:24 -07:00
John L 871a68d692
Fix to Curl provider for custom HTTP requests (#617) 2021-09-27 17:56:36 -07:00
John L d3ce3b43d2
Fix WinHttp WebSocket stack for GDK (#616)
* HC_PERFORM_ENV is the context for both the HTTP and WebSocket providers.  On GDK, we want to user the Curl HTTP provider but the WinHttp WebSocket provider, so I've separated out WinHttpState from the WinHttp provider's HC_PERFORM_ENV so that it can be included in XCurl provider as well.
* Also added missing XCurl lib path to libHttpClient.props that was causing link issues
* Properly use client WriteResponseBody/ReadRequestBody callbacks in Curl HTTP provider
2021-09-23 13:40:26 -07:00
Sasha Weiss 1af4d35f99
Update min iOS version to 11.0 (#615)
* Update the iOS min version to 11.0

* Enable base i18n to silence warning

* Drop armv7 from the OpenSSL script
2021-09-22 09:45:00 -07:00
Sasha Weiss f89c9a8b0d
Support the streaming callbacks in the mocks (#614) 2021-09-20 16:57:15 -07:00
Sasha Weiss 19afd51719
Add missing method to Framework exports (#613)
Co-authored-by: sashaweiss <asashaweiss@gmail.com>
2021-09-20 12:48:24 -07:00
John L c9fdea9bd0
Fix GDK release build (#610) 2021-09-17 12:04:44 -07:00
John L b3f8a985cc
Add missing header (#609)
* Add missing header

* Alphabetize includes
2021-09-13 10:47:48 -07:00
John L fd3593cf7f
Swapping HTTP provider for GDK from WinHttp to XCurl (#605)
* Swapping HTTP provider for GDK from WinHttp to XCurl

* Add locking around XCurlMulti::m_easyRequests, cleanup logging

* Minor fixes

* Cleanup headers slist

* Addressing feedback

* Addressing more feedback

* Small fixes

* Fix comment, add a couple curl error codes
2021-08-26 13:24:33 -07:00
Sasha Weiss 2aec337f24
Update OpenSSL and support M1 Macs (#602)
* Update openssl commit to 1.1.1k

* Format openssl and add log function

* Quick script fix

* More cleaning the script

* More rewriting and cleaning up of script

* Unblock arm64 from xcodeprojs and heavily modify script

* Remove short circuit

* Don't suffix with platform name, already broken out in DerivedData

* Re-add armv7 support

* Fix header path and replace deprecated Sec method

* Wrap SecTrust method in an availablity check

* Build fixes

* Fix Win32 and Android builds

* Empty commit to bump CI

Co-authored-by: sashaweiss <asashaweiss@gmail.com>
Co-authored-by: Jason Sandlin <jasonsa@microsoft.com>
2021-08-23 15:31:08 -07:00
Sasha Weiss b184826b45
Short-circuit request body read if no more data (#601)
* Skip calling RequestBodyRead if no more data is expected

* Return -1 in Android cpp to signal Android Java

* Add comments

* Empty commit to bump CI

* Empty commit to bump CI again

Co-authored-by: sashaweiss <asashaweiss@gmail.com>
2021-08-16 13:13:49 -07:00
Sasha Weiss 7af5486f4f
Fix broken Android build (#600) 2021-07-30 16:10:47 -07:00
Sasha Weiss 3af828ca42
Move the Android build to a Windows agent (#598)
* Move the Android build to a Windows agent

* Empty commit to bump CI

* Trigger for PRs to main
2021-07-30 15:20:08 -07:00
Jason Sandlin be92eacf55
Switching to ADO YAML build defs (#597)
* Switching to ADO YAML build defs

* PR

* PR

* PR
2021-07-29 15:56:31 -07:00
Jason Sandlin 1b4257351e
Fixing HCCleanup() API (#596) 2021-07-26 15:35:06 -07:00
Jason Sandlin 7e7ce137bc
Updating readme (#595) 2021-07-23 17:56:29 -07:00
Jason Sandlin 4b5d3f7c2b
Add x64 build configurations to 2017 .sln (#594)
* Add Debug|x64 to vs17 projects missing it

* Also add Release|x64

* Fixing errors

* Fixing errors

* Fixing warning

Co-authored-by: sashaweiss-msft <saweiss@microsoft.com>
2021-07-14 20:28:31 -07:00
Luca Beltrami fda07c155f
Fix exports (#593) 2021-07-14 17:44:46 -07:00
Sasha Weiss 30db9825eb
Remove Visual Studio Android builds (#591)
* README updates

* Start stripping Android from CMakeLists.txts and stuff

* More stripping

* Do the deleting >:D

* More deletion

* Strip more

* Remove Android projects from VS

* Update README

* Reset unintended vcxproj guid changing

* Add Debug|x64 to vs17 projects missing it

* Also add Release|x64

* Revert "Add Debug|x64 to vs17 projects missing it"

This reverts commit 19d9d22300.

* Revert "Also add Release|x64"

This reverts commit d64fe15764.
2021-07-14 14:15:16 -07:00
Jason Sandlin b3906e913a
Adding assert for GDK console to note that SSL validation is enforced on RETAIL sandboxes (#589)
* Adding assert for GDK console to note that SSL validation is enforced on RETAIL sandboxes

* Updating comment
2021-07-13 14:49:58 -07:00
Sasha Weiss 4443721ea5
Update to Gradle 6.6 (#590) 2021-07-08 17:38:14 -07:00
tculotta c23196f037
Task 33321557: Streamline XSAPI thunk dll generation and ship it in the GDK (#588)
* Task 33321557: Streamline XSAPI thunk dll generation and ship it in the GDK

* Task 33321557: Streamline XSAPI thunk dll generation and ship it in the GDK
2021-06-21 09:58:03 -07:00