Eric Frias
d5370fc2ea
Update the websocketpp library and change the configuration options we pass
...
when creating the websocket servers to enable deflate compression on
websocket frames. This is relevant to cryptonomex/graphene#540 because
the spammed data is higly compressible. In my tests, it reduces bandwidth
for a single idle node by a factor of ~16, from 577kbps down to 36kbps.
This doesn't require any changes to the wallets, simply upgrading the
public servers will begin sending compressed data to all clients that
support it.
Note: this commit adds a dependency on zlib for non-apple platforms
(it was already required on apple)
2016-03-03 16:53:43 -05:00
Eric Frias
6ed7717826
Handle http requests to the websocket server async, in a similar manner to the way regular websocket messages were handled since 01445529f0. Fixes cryptonomex/graphene#251 , and likely eliminates the need for the workaround used to fix cryptonomex/graphene#1 and cryptonomex/graphene#252
2016-02-10 15:25:54 -05:00
Daniel Larimer
19e42ac4c4
fix potential crash in websocket
2015-09-07 17:46:08 -04:00
Nathan Hourt
9c868b3927
Fix crash on exit
2015-08-14 14:31:09 -04:00
Daniel Larimer
d79855b491
Websocket shouldn't cleanup default_io_service, that should only happen ONE time when main exits.
2015-07-24 08:32:38 -04:00
Nathan Hourt
17b64bb38f
Resolve cryptonomex/graphene/issues/146
2015-07-22 12:11:04 -04:00
Daniel Larimer
01445529f0
handle messages async
2015-05-29 12:11:21 -04:00
Nathan Hourt
83d5bcb147
Mark websockets as logging to rpc
2015-05-27 15:04:34 -04:00
Nathan Hourt
8012ab4705
Fix crash on exit with websocket_client
2015-05-27 14:54:11 -04:00
Daniel Larimer
9ef91e2245
partial fixes to crashing on websocket client close
2015-05-12 17:15:00 -04:00
Daniel Larimer
c28ed38f1a
adding support for secure websocket client
2015-05-12 16:16:10 -04:00
Daniel Larimer
fb62b6421c
adding ssl support to websocket
2015-05-12 14:50:08 -04:00
Daniel Larimer
4df08d8efe
fix crash in websocket
2015-05-06 16:34:55 -04:00
Daniel Larimer
72288a25b1
making sure getline doesn't blog
2015-05-04 14:07:22 -04:00
Daniel Larimer
c8200afade
better close notification and error handling
2015-04-01 10:25:57 -04:00
Daniel Larimer
e506e4f4be
added listen on a specific endpoint/port pair
2015-03-30 16:56:28 -04:00
Daniel Larimer
74b707999c
fix bugs with websocket and integrate API support
2015-03-27 16:29:33 -04:00
Daniel Larimer
4ce26f068f
implement simple websocket wrapper ontop of websocketpp
2015-03-26 16:51:10 -04:00