What’s new in Snorky 0.1.0-a3¶
Apr 14, 2014¶
Here is a new release with new features.
compare_digest, a function that provides constant-time string comparison in Python 2.7.7+ and Python 3.3+ has been replaced with streql, a third party module that performs the same task, but it is compatible with older Python versions.
This is required to use Snorky in CentOS 7 with Python 2 without building the interpreter from source.
SNORKY_JSON_ENCODERsetting in the Django connector, allowing to change the JSON encoder class (as if
Added debug logging to the Python backend connector. The logging channel is ‘snorky’. If the logging level is
DEBUGit will emit a line for each message sent or received between the client and Snorky.
DataSyncBackenddoes not receive a field now it will include its name in the error message (before only Missing field was returned).
SnorkyWebSocketHandlerpings clients each 90 seconds by default. This is needed in order to not let NAT routers drop long lived otherwise inactive connections.
The interval can be customized with the
SnorkyWebSocketHandler. For example, in order to ping the clients with a frequency of 3 minutes (180 seconds) you could use this code:
app_frontend = Application([ SnorkyWebSocketHandler.get_route(frontend, "/ws", ping_pong_interval=180), ])