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

674 Коммитов

Автор SHA1 Сообщение Дата
Luca Beltrami cefee9a1ba
Fixup guids in project and templates (#508) 2020-04-07 17:46:53 -07:00
John L 8535e5d356
Fixing win32 x86 build (#507) 2020-04-06 15:29:48 -07:00
John L 41240cc474
Add explicit platform macros for Nintendo Switch and Playstation 4 (#506)
* Add explicit platform macros for Nintendo Switch and Playstation 4

* Addressing PR feedback
2020-04-06 12:24:46 -07:00
Brian Pepin db4fb0c6c9
Fix corner case error handling (#505)
This change fixes a corner case where we could orphan a call if an async call was started after a queue was terminated.
2020-03-27 16:25:07 -07:00
Jason Sandlin 98e0c141d6
More %llu fixes (#504) 2020-03-20 15:08:07 -07:00
Sasha Weiss a3070c6e11
Allow overriding LIB_OUTPUT env var in openssl.bash for iOS builds (#503)
* Allow overriding LIB_OUTPUT env var in openssl.bash for iOS builds

* Update Xcode project to put built/intermediate files for OpenSSL alongside the rest of Xcode files rather than in libHttpClient dir

* Check for both expected env vars in openssl.bash
2020-03-19 16:19:56 -07:00
Jason Sandlin d3391a45b2
Fixing HCHttpCallResponseSetResponseBodyBytes logs bogus bodySize (#502)
* Fixing HCHttpCallResponseSetResponseBodyBytes logs bogus bodySize on Windows x32 debug

* PR feedback

* Fixing %lu usage
2020-03-18 12:34:54 -07:00
John L 77fdd6a506
CleanupAsync needs to return E_PENDING unless its done (#499) 2020-03-10 10:10:30 -07:00
John L 043c2b67f6
Removing reference to dead lib (#498) 2020-03-09 19:40:55 -07:00
Brian Pepin 5100751f69
PR feedback from Windows (#497)
This is an update that addresses minor PR feedback from the Windows team. Mainly:

Duplication of code in push_back.
Whitespace issues.
Also in this change:

Switch from C_ASSERT to static_assert. It turns out this is supported across all platforms after all as long as you use the variant with a message.

Re-arrange members so Android compiler doesn't generate warnings about initialization order.
2020-03-02 14:41:48 -08:00
Brian Pepin b43e7596a4
Move task queue over to new LocklessQueue (#496)
This change replaces LocklessList.h with LocklessQueue.h. LocklessQueue performs much better than LocklessList and allows new items to be added to a task queue with zero allocations. Overall performance of task queue inserts and removals is about 6x faster.
2020-02-28 11:54:56 -08:00
Ramsey 8807861880
Adding missing platform to config.h (#494)
* Adding missing platform to config.h

* Feedback
2020-02-14 16:59:24 -08:00
John L 82df91c8d5
Make libHttpClient initialization refCounted (#492)
* Make libHttpClient initialization refCounted

* Making singleton_access a member function so self pointer is set multiple times
2020-02-11 18:50:15 -08:00
John L a3dab88296
Fixing bug with http platform can but initialized multiple times (#491)
* Fixing bug with http platform can but initialized multiple times

* Addressing feedback

* Singleton should set m_self in create

* Adding comment explaining m_self in http_singleton::create

* Fix build error on iOS
2020-02-11 15:04:19 -08:00
John L d0598f54dd
Fix lifetime issues with http_singleton (#490)
* Fixing singleton lifetime issues

* Fixing some broken unit tests

* Addressing feedback

* Address race condition in http_singleton::create

* Fix comment
2020-02-10 20:59:25 -08:00
Luca Beltrami bcad90fd2d
Fix HC_NOWEBSOCKET build (#489) 2019-12-04 13:04:37 -08:00
natiskan 01876cf45e return E_UNEXPECTED in HC_WEBSOCKET::Disconnect for any state other than State::Connected (#488) 2019-11-20 17:52:53 -08:00
virtuallyjeff-ms 0f9e029e6e found that project IDs were in conflict across other projects that include libHttpClient -- somewhere the project IDs got corrupted through a merge or something. (#487) 2019-11-18 10:30:04 -08:00
virtuallyjeff-ms e165f8f282
set build tools version at a fixed value (#486)
* set build tools version at a fixed value;  this was because otherwise it will fluctuate depending on what build tools a user's environment has installed.  this should be ok, except that it makes build.gradle a generated file, and we have that committed in the repo.  therefore it is always showing up as modified on different users' machines

* added HTTP and UWP projects
2019-11-15 16:00:39 -08:00
Luca Beltrami edbbd4fdc9
Fixup the 2019 solution (#483) 2019-11-07 11:36:19 -08:00
virtuallyjeff-ms 6db1ba43a7
Users/jjclose/x86 64 build (#485)
* configuration dependencies and Target API changes to support x86_64 for Android

* added changes to Release config and added UWP.C

* removed libHttpClient TAEF and TE from x64 build because they depend on openssl32

* bumped minSdkVersion to 21

* bumped target API to 21

* added per-flavor SDK targets
2019-11-06 12:05:03 -08:00
virtuallyjeff-ms 030345f7ea
Users/jjclose/x86 64 build (#484)
* configuration dependencies and Target API changes to support x86_64 for Android

* added changes to Release config and added UWP.C

* removed libHttpClient TAEF and TE from x64 build because they depend on openssl32

* bumped minSdkVersion to 21

* bumped target API to 21
2019-11-05 12:39:09 -08:00
virtuallyjeff-ms e9e76dccdc
android x86_64 build configuration changes (#482)
* configuration dependencies and Target API changes to support x86_64 for Android

* added changes to Release config and added UWP.C

* removed libHttpClient TAEF and TE from x64 build because they depend on openssl32

* bumped minSdkVersion to 21
2019-11-04 16:12:46 -08:00
Jason Sandlin cf639576bb
Adding routing events for websocket traffic (#480) 2019-10-29 15:20:51 -07:00
sawalkerXbox 6090508d98 Update iOS Xcode Build to Succeed on Clean Build (#479)
* Moving Build SSL step to target dependency

* Making new target in iOS for ssl only

* Updating naming and project file

* Renaming Dummy files to Empty

* Removing unnecessary files for SSL target

* Renaming build script
2019-10-25 12:33:54 -07:00
Jason Sandlin 59447d4b36
Fixing missing return when singleton null (#478) 2019-10-22 15:10:37 -07:00
Jason Sandlin bdb142114e
Removing assert on null singleton as cases are handled with proper error handling (#477)
* Removing assert on null singleton as cases are handled with proper error handling

* Fixing test
2019-10-22 13:47:09 -07:00
Jason Sandlin 0247231c0b
Fixing HC_CALL memory management (#476)
* Fixing HC_CALL memory management

* PR feedback

* PR feedback
2019-10-22 10:29:37 -07:00
Jason Sandlin 4ef29d8b7f
Adding missing 429 (#475) 2019-10-18 15:06:35 -07:00
John L c3a5c69816
Add missed null check in mock stack (#474) 2019-10-18 13:36:18 -07:00
John L b4a3c1dd95
Fixing bug in http mock framework (#472) 2019-10-16 16:02:45 -07:00
Jason Sandlin c44f35b843
Putting HC_CALL into RAII wrapper (#470) 2019-10-08 11:59:37 -07:00
Jason Sandlin b901fc8cc8
Fixing code analysis bugs (#469) 2019-10-01 16:53:02 -07:00
virtuallyjeff-ms 74206292a3 removed DefinesModule settings (#468) 2019-09-23 13:55:16 -07:00
virtuallyjeff-ms 153c348276 fixing reverted project change (#467) 2019-09-20 16:37:59 -07:00
Ramsey 3a0867c6a0
Added connection check when sending a message in websocketpp (#466)
* Added connection check when sending a message in websocketpp

* Feedback
2019-09-17 13:46:44 -07:00
John L 2411b27784 Fix hang during wspp shutdown (#465)
* Fix hang during wspp shutdown

* Fix whitespace

* Add interval to timeout
2019-09-16 16:13:45 -07:00
Brian Pepin d20427fa10
Fix a subtle race shutting down a task queue with deferred calls (#464)
If a task queue is executing a deferred callback and is asked to terminate, it's possible the the deferred call runs while the queue task port is destructing. This can cause a crash.  

This also changes cleanup so if you don't have a payload to return your cleanup op is called at the end of work processing.  this can help with shutdown.
2019-09-16 15:00:57 -07:00
Ramsey bebd03dd52 Added better error handling to WinRT websocket implementation (#463)
* Added better error handling to WinRT websocket implementation

* Feedback
2019-09-13 17:07:23 -07:00
Ali Hosseini Khayat dd55907d36 fix(android): use host name aware checkServerTrusted api (#461)
if an app has specified a domain-specific configuration in their
network security manifest, checkServerTrusted(X509Certificate[], String, String)
must be used to check if a server is trusted, otherwise a CertificateException
is thrown.
2019-09-13 15:57:17 -07:00
Ramsey f819ce02db
Updated network initializing detection (#457)
* Updated network initializing detection

* Feedback

* Feedback

* Improvements

* Build break
2019-08-29 12:31:44 -07:00
Ramsey e044384f62
Updating config.h (#455) 2019-08-21 16:39:50 -07:00
Ramsey 5d1803ca1f
Adding network connectivity check for WinHttp stack (#454)
Adding network connectivity check for WinHttp stack
2019-08-21 13:39:33 -07:00
Ramsey 20f0c27229
Changing WinHttp access type to automatic (#453) 2019-08-21 12:16:51 -07:00
John L 9f42a568af
Allow websocket close to happen after HCCleanup (#451) 2019-08-02 13:02:17 -07:00
Jason Sandlin 172afd94da Fixing warnings on release build (#452) 2019-08-02 11:50:30 -07:00
Jason Sandlin f60f3caa2c
Fixing warning on android (#450) 2019-07-30 18:35:26 -07:00
Jason Sandlin a10c67e067
Switching to W4 and warnings as errors (#449)
* Switching to W4 and warnings as errors

* Fixing mock
2019-07-23 17:58:56 -07:00
Jason Sandlin 86c69fd227
Early exit if no mocks (#448) 2019-07-22 16:39:29 -07:00
John L 9b0cd3a73a
Mock updates (#447)
* Add support for getting an intermediate callback when a mock is matched.
* Add ability to remove a single mock without having to clear them all.
2019-07-19 13:05:12 -07:00