Skip to content

Commit

Permalink
Workaround data-race on websocketpp's _htonll function (#1082)
Browse files Browse the repository at this point in the history
* Workaround data-race on websocketpp's _htonll function

* Add URI to discussion.
  • Loading branch information
whoan authored and BillyONeal committed Mar 26, 2019
1 parent 9b670e5 commit 42a6e76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Release/src/websockets/client/ws_client_wspp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
#pragma warning(disable : 4503)
#endif

// Workaround data-race on websocketpp's _htonll function, see
// https://github.com/Microsoft/cpprestsdk/pull/1082
auto avoidDataRaceOnHtonll = websocketpp::lib::net::_htonll(0);

// This is a hack to avoid memory leak reports from the debug MSVC CRT for all
// programs using the library: ASIO calls SSL_library_init() which calls
// SSL_COMP_get_compression_methods(), which allocates some heap memory and the
Expand Down

0 comments on commit 42a6e76

Please sign in to comment.