<p>(ws cobra to sentry) bound the queue size used to hold up cobra messages before they are sent to sentry. Default queue size is a 100 messages. Without such limit the program runs out of memory when a subscriber receive a lot of messages that cannot make it to sentry</p>
<h2id="781-2019-12-25">[7.8.1] - 2019-12-25</h2>
<p>(ws client) use correct compilation defines so that spdlog is not used as a header only library (reduce binary size and increase compilation speed)</p>
<h2id="780-2019-12-24">[7.8.0] - 2019-12-24</h2>
<p>(ws client) all commands use spdlog instead of std::cerr or std::cout for logging</p>
<h2id="765-2019-12-24">[7.6.5] - 2019-12-24</h2>
<p>(cobra client) send a websocket ping every 30s to keep the connection opened</p>
<h2id="764-2019-12-22">[7.6.4] - 2019-12-22</h2>
<p>(client) error handling, quote url in error case when failing to parse one
(ws) ws_cobra_publish: register callbacks before connecting
(doc) mention mbedtls in supported ssl server backend</p>
<p>(cobra) Add TLS options to all cobra commands and classes. Add example to the doc.</p>
<h2id="758-2019-12-18">[7.5.8] - 2019-12-18</h2>
<p>(cobra-to-sentry) capture application version from device field</p>
<h2id="757-2019-12-18">[7.5.7] - 2019-12-18</h2>
<p>(tls) Experimental TLS server support with mbedtls (windows) + process cert tlsoption (client + server)</p>
<h2id="756-2019-12-18">[7.5.6] - 2019-12-18</h2>
<p>(tls servers) Make it clear that apple ssl and mbedtls backends do not support SSL in server mode</p>
<h2id="755-2019-12-17">[7.5.5] - 2019-12-17</h2>
<p>(tls options client) TLSOptions struct _validated member should be initialized to false</p>
<h2id="754-2019-12-16">[7.5.4] - 2019-12-16</h2>
<p>(websocket client) improve the error message when connecting to a non websocket server</p>
<p>Before:</p>
<pre><code>Connection error: Got bad status connecting to example.com:443, status: 200, HTTP Status line: HTTP/1.1 200 OK
</code></pre>
<p>After:</p>
<pre><code>Connection error: Expecting status 101 (Switching Protocol), got 200 status connecting to example.com:443, HTTP Status line: HTTP/1.1 200 OK
</code></pre>
<h2id="753-2019-12-12">[7.5.3] - 2019-12-12</h2>
<p>(server) attempt at fixing #131 by using blocking writes in server mode</p>
<h2id="752-2019-12-11">[7.5.2] - 2019-12-11</h2>
<p>(ws) cobra to sentry - created events with sentry tags based on tags present in the cobra messages</p>
<li>(ws) cobra to sentry. Handle Error 429 Too Many Requests and politely wait before sending more data to sentry.</li>
</ul>
<p>In the example below sentry we are sending data too fast, sentry asks us to slow down which we do. Notice how the sent count stop increasing, while we are waiting for 41 seconds.</p>
<pre><code>[2019-12-05 15:50:33.759] [info] messages received 2449 sent 3
[2019-12-05 15:50:34.759] [info] messages received 5533 sent 7
[2019-12-05 15:50:35.759] [info] messages received 8612 sent 11
[2019-12-05 15:50:36.759] [info] messages received 11562 sent 15
[2019-12-05 15:50:37.759] [info] messages received 14410 sent 19
[2019-12-05 15:50:38.759] [info] messages received 17236 sent 23
[2019-12-05 15:50:39.282] [error] Error sending data to sentry: 429
[2019-12-05 15:50:39.282] [error] Body: {"exception":[{"stacktrace":{"frames":[{"filename":"WorldScene.lua","function":"WorldScene.lua:1935","lineno":1958},{"filename":"WorldScene.lua","function":"onUpdate_WorldCam","lineno":1921},{"filename":"WorldMapTile.lua","function":"__index","lineno":239}]},"value":"noisytypes: Attempt to call nil(nil,2224139838)!"}],"platform":"python","sdk":{"name":"ws","version":"1.0.0"},"tags":[["game","niso"],["userid","107638363"],["environment","live"]],"timestamp":"2019-12-05T23:50:39Z"}
[2019-12-05 15:50:39.282] [error] Response: {"error_name":"rate_limit","error":"Creation of this event was denied due to rate limiting"}
[2019-12-05 15:50:39.282] [warning] Error 429 - Too Many Requests. ws will sleep and retry after 41 seconds
[2019-12-05 15:50:39.760] [info] messages received 18839 sent 25
[2019-12-05 15:50:40.760] [info] messages received 18839 sent 25
[2019-12-05 15:50:41.760] [info] messages received 18839 sent 25
[2019-12-05 15:50:42.761] [info] messages received 18839 sent 25
[2019-12-05 15:50:43.762] [info] messages received 18839 sent 25
[2019-12-05 15:50:44.763] [info] messages received 18839 sent 25
[2019-12-05 15:50:45.768] [info] messages received 18839 sent 25
</code></pre>
<h2id="745-2019-12-03">[7.4.5] - 2019-12-03</h2>
<ul>
<li>(ws) #125 / fix build problem when jsoncpp is not installed locally</li>
<li>TLS support in server code, only implemented for the OpenSSL SSL backend for now.</li>
</ul>
<h2id="634-2019-09-30">[6.3.4] - 2019-09-30</h2>
<ul>
<li>all ws subcommands propagate tls options to servers (unimplemented) or ws or http client (implemented) (contributed by Matt DeBoer)</li>
</ul>
<h2id="633-2019-09-30">[6.3.3] - 2019-09-30</h2>
<ul>
<li>ws has a --version option</li>
</ul>
<h2id="632-2019-09-29">[6.3.2] - 2019-09-29</h2>
<ul>
<li>(http + websocket clients) can specify cacert and some other tls options (not implemented on all backend). This makes it so that server certs can finally be validated on windows.</li>
</ul>
<h2id="631-2019-09-29">[6.3.1] - 2019-09-29</h2>
<ul>
<li>Add ability to use OpenSSL on apple platforms.</li>
</ul>
<h2id="630-2019-09-28">[6.3.0] - 2019-09-28</h2>
<ul>
<li>ixcobra / fix crash in CobraConnection::publishNext when the queue is empty + handle CobraConnection_PublishMode_Batch in CobraMetricsThreadedPublisher</li>
</ul>
<h2id="629-2019-09-27">[6.2.9] - 2019-09-27</h2>
<ul>
<li>mbedtls fixes / the unittest now pass on macOS, and hopefully will on Windows/AppVeyor as well.</li>
</ul>
<h2id="628-2019-09-26">[6.2.8] - 2019-09-26</h2>
<ul>
<li>Http server: add options to ws https to redirect all requests to a given url. POST requests will get a 200 and an empty response.</li>
<li>Fix 2 race conditions detected with TSan, one in CobraMetricsPublisher::push and another one in WebSocketTransport::sendData (that one was bad).</li>
</ul>
<h2id="625-2019-09-23">[6.2.5] - 2019-09-23</h2>
<ul>
<li>Add simple Redis Server which is only capable of doing publish / subscribe. New ws redis_server sub-command to use it. The server is used in the unittest, so that we can run on CI in environment where redis isn not available like github actions env.</li>
</ul>
<h2id="624-2019-09-22">[6.2.4] - 2019-09-22</h2>
<ul>
<li>Add options to configure TLS ; contributed by Matt DeBoer. Only implemented for OpenSSL TLS backend for now.</li>
</ul>
<h2id="623-2019-09-21">[6.2.3] - 2019-09-21</h2>
<ul>
<li>Fix crash in the Linux unittest in the HTTP client code, in Socket::readBytes</li>
<li>Cobra Metrics Publisher code returns the message id of the message that got published, to be used to validated that it got sent properly when receiving an ack.</li>
</ul>
<h2id="622-2019-09-19">[6.2.2] - 2019-09-19</h2>
<ul>
<li>In DNS lookup code, make sure the weak pointer we use lives through the expected scope (if branch)</li>
</ul>
<h2id="621-2019-09-17">[6.2.1] - 2019-09-17</h2>
<ul>
<li>On error while doing a client handshake, additionally display port number next to the host name</li>
<li>add cobra metrics publisher + server unittest</li>
<li>add cobra client + server unittest</li>
<li>ws snake (cobra simple server) add basic support for unsubscription + subscribe send the proper subscription data + redis client subscription can be cancelled</li>
<li>IXCobraConnection / pdu handlers can crash if they receive json data which is not an object</li>
</ul>
<h2id="600-2019-09-04">[6.0.0] - 2019-09-04</h2>
<ul>
<li>all client autobahn test should pass !</li>
<li>zlib/deflate has a bug with windowsbits == 8, so we silently upgrade it to 9/ (fix autobahn test 13.X which uses 8 for the windows size)</li>
</ul>
<h2id="520-2019-09-04">[5.2.0] - 2019-09-04</h2>
<ul>
<li>Fragmentation: for sent messages which are compressed, the continuation fragments should not have the rsv1 bit set (fix all autobahn tests for zlib compression 12.X)</li>
<li>Websocket Server / do a case insensitive string search when looking for an Upgrade header whose value is websocket. (some client use WebSocket with some upper-case characters)</li>
</ul>
<h2id="519-2019-09-03">[5.1.9] - 2019-09-03</h2>
<ul>
<li>ws autobahn / report progress with spdlog::info to get timing info</li>
<li>ws autobahn / use condition variables for stopping test case + add more logging on errors</li>
<li><code>ws connect</code> add new option (-H, works like <ahref="https://stackoverflow.com/questions/356705/how-to-send-a-header-using-a-http-request-through-a-curl-call">curl</a>) to pass in extra HTTP headers when connecting</li>
<li>CobraConnection: sets a unique id field for all messages sent to <ahref="https://github.com/machinezone/cobra">cobra</a>.</li>
<li>CobraConnection: sets a counter as a field for each event published.</li>
</ul>
<h2id="506-2019-08-22">[5.0.6] - 2019-08-22</h2>
<ul>
<li>Windows: silly compile error (poll should be in the global namespace)</li>
</ul>
<h2id="505-2019-08-22">[5.0.5] - 2019-08-22</h2>
<ul>
<li>Windows: use select instead of WSAPoll, through a poll wrapper</li>
</ul>
<h2id="504-2019-08-20">[5.0.4] - 2019-08-20</h2>
<ul>
<li>Windows build fixes (there was a problem with the use of ::poll that has a different name on Windows (WSAPoll))</li>
</ul>
<h2id="503-2019-08-14">[5.0.3] - 2019-08-14</h2>
<ul>
<li>CobraMetricThreadedPublisher _enable flag is an atomic, and CobraMetricsPublisher is enabled by default</li>
</ul>
<h2id="502-2019-08-01">[5.0.2] - 2019-08-01</h2>
<ul>
<li>ws cobra_subscribe has a new -q (quiet) option</li>
<li>ws cobra_subscribe knows to and display msg stats (count and # of messages received per second)</li>
<li>ws cobra_subscribe, cobra_to_statsd and cobra_to_sentry commands have a new option, --filter to restrict the events they want to receive</li>
</ul>
<h2id="501-2019-07-25">[5.0.1] - 2019-07-25</h2>
<ul>
<li>ws connect command has a new option to send in binary mode (still default to text)</li>
<li>ws connect command has readline history thanks to libnoise-cpp. Now ws connect one can use using arrows to lookup previous sent messages and edit them</li>
</ul>
<h2id="500-2019-06-23">[5.0.0] - 2019-06-23</h2>
<h3id="changed">Changed</h3>
<ul>
<li>New HTTP server / still very early. ws gained a new command, httpd can run a simple webserver serving local files.</li>
<li>IXDNSLookup. Uses weak pointer + smart_ptr + shared_from_this instead of static sets + mutex to handle object going away before dns lookup has resolved</li>
<li>cobra_to_sentry / backtraces are reversed and line number is not extracted correctly</li>
<li>mbedtls and zlib are searched with find_package, and we use the vendored version if nothing is found</li>
<li>travis CI uses g++ on Linux</li>
</ul>
<h2id="400-2019-06-09">[4.0.0] - 2019-06-09</h2>
<h3id="changed_1">Changed</h3>
<ul>
<li>WebSocket::send() sends message in TEXT mode by default</li>
<li>WebSocketMessage sets a new binary field, which tells whether the received incoming message is binary or text</li>
<li>WebSocket::send takes a third arg, binary which default to true (can be text too)</li>
<li>WebSocket callback only take one object, a const ix::WebSocketMessagePtr& msg</li>