Renjie Cai
65ad10b715
support https and wss core url in shard's ws client ( #488 )
...
* support https and wss core url in shard's ws client
* fmt
* small fix
2022-08-04 17:01:32 +01:00
James Wilson
a3ffaf3c44
Flume fix part 2: avoid using flume in a couple of cases, and revert attempted fix#1 ( #396 )
...
* A second attempt to avoid the flume memory leak, since the first didn't actually work
* No luck with second flume fix, so revert to futures::mpsc in a few places)
* cargo fmt
* Add a comment to cover use of into_stream
2021-09-03 15:55:25 +01:00
James Wilson
2932075783
Avoid using flume::Receiver::into_stream() to avoid memory leaks until the issue is resolved upstream ( #394 )
...
* Tweak rolling_total test to also confirm capacity doesn't go nuts
* Use Jemalloc
* Avoid flume's into_stream and use a workaround for now
* cargo fmt
* Improve comments now that there's an issue to point to
2021-09-03 08:40:43 +01:00
James Wilson
230987036a
cargo fmt
2021-08-12 16:01:35 +01:00
James Wilson
bd7a21ec39
Flumify everything
2021-08-12 16:01:17 +01:00
James Wilson
f26b39ac63
Address feedback from Niklas
2021-08-11 16:59:11 +01:00
James Wilson
88c3db3562
cargo fmt
2021-08-06 17:44:26 +01:00
James Wilson
c2892286a6
Add a comment
2021-08-02 09:54:11 +01:00
James Wilson
b79759a412
Tidy up close handling and allow either side to close
2021-08-02 09:50:31 +01:00
James Wilson
963ef576f3
add on_close to abstract and simplify ws_client socket closing
2021-08-02 09:30:29 +01:00
James Wilson
13afb96f93
Be more fussy with Soketto channel wrapper; Soketto might do otherwise, but we only explicitly close the connection when both ends of the channel handed out are closed (or we encounter a connection error)
2021-07-30 21:26:52 +01:00
James Wilson
18918e6d3e
undo a previous change; close the connection if either side of the channel handed back is dropped/fails
2021-07-30 19:43:26 +01:00
James Wilson
a5b04cb4f0
improve socket channel close handling, and test the node banning (roughly)
2021-07-30 18:58:10 +01:00
James Wilson
b70ab9ed3d
Add license to the top of each source file
2021-07-29 17:34:40 +01:00
James Wilson
2ca5f6a1fb
cargo fmt
2021-07-27 12:38:05 +01:00
James Wilson
ecf5fccaab
make possible to test, test, and fix feed cutoff
2021-07-26 16:38:24 +01:00
James Wilson
50935b29fc
put a deadline on message sending to feeds
2021-07-26 11:52:46 +01:00
James Wilson
e043de8ddb
Expose raw Soketto interface via ws_client for more control where needed (eg in tests)
2021-07-26 11:31:40 +01:00