Joakim Frostegård
|
138e501599
|
aquatic_ws: impl read_vectored and write_vectored for Stream
|
2020-05-14 01:06:18 +02:00 |
|
Joakim Frostegård
|
6c26331ffb
|
aquatic_ws: add inline markers to functions that will probably be hot
|
2020-05-14 00:25:31 +02:00 |
|
Joakim Frostegård
|
b05db0f699
|
aquatic_ws: remove unused import
|
2020-05-13 20:05:39 +02:00 |
|
Joakim Frostegård
|
63b84e7706
|
aquatic_ws: move more code into Connection impl
|
2020-05-13 20:02:05 +02:00 |
|
Joakim Frostegård
|
7011a797ee
|
Update TODO; clean up code
|
2020-05-13 19:40:49 +02:00 |
|
Joakim Frostegård
|
846e076b4b
|
aquatic_ws: move code into Connection impl, so inner can be private
|
2020-05-13 19:34:46 +02:00 |
|
Joakim Frostegård
|
0bcfffb2bd
|
aquatic_ws: create HandshakeMachine from ConnectionStage
|
2020-05-13 19:17:33 +02:00 |
|
Joakim Frostegård
|
2967129c1f
|
aquatic_ws: network: streamline handshake handlers
|
2020-05-13 18:44:10 +02:00 |
|
Joakim Frostegård
|
6d06a43db8
|
aquatic_ws: add setting for using tls; update TODO
|
2020-05-13 16:43:23 +02:00 |
|
Joakim Frostegård
|
a6f1d3fa36
|
aquatic_ws: network: improve comments
|
2020-05-13 16:02:49 +02:00 |
|
Joakim Frostegård
|
021fd554b0
|
aquatic_ws: streamline network code
|
2020-05-13 15:56:45 +02:00 |
|
Joakim Frostegård
|
68abecdaa5
|
aquatic_ws: run_handshakes_and_read_messages: simplify code
|
2020-05-13 15:49:07 +02:00 |
|
Joakim Frostegård
|
7e2f371007
|
aquatic_ws: simplify network code further
|
2020-05-13 15:14:11 +02:00 |
|
Joakim Frostegård
|
6a8047a5fe
|
aquatic_ws: run_handshakes_and_read_messages: simplify
|
2020-05-13 15:04:53 +02:00 |
|
Joakim Frostegård
|
012ccd7ec1
|
aquatic_ws: simplify network code
|
2020-05-13 15:03:02 +02:00 |
|
Joakim Frostegård
|
05844e9645
|
WIP: aquatic_ws: continue work on simplifying network code
|
2020-05-13 14:46:38 +02:00 |
|
Joakim Frostegård
|
91590858b9
|
WIP: aquatic_ws; work on simplifying network code
|
2020-05-13 14:35:05 +02:00 |
|
Joakim Frostegård
|
987e1a4a45
|
aquatic_ws: improve comments in config
|
2020-05-12 21:08:30 +02:00 |
|
Joakim Frostegård
|
0c93d170de
|
WIP: aquatic_ws network: organize into submodule, other small fixes
|
2020-05-12 21:04:47 +02:00 |
|
Joakim Frostegård
|
800d3b0efa
|
WIP: aquatic_ws: network: add ConnectionStage::is_established
|
2020-05-12 20:46:00 +02:00 |
|
Joakim Frostegård
|
6e0b0ccbc2
|
WIP: aquatic_ws: network: rename PeerConnection to EstablishedWs
|
2020-05-12 20:31:07 +02:00 |
|
Joakim Frostegård
|
b221f3fc34
|
WIP: aquatic_ws: support tls and no tls with same functions
|
2020-05-12 20:20:00 +02:00 |
|
Joakim Frostegård
|
de9a32840f
|
WIP: aquatic_ws: start work on wss (ws with tls)
|
2020-05-12 18:48:50 +02:00 |
|
Joakim Frostegård
|
7c9ecda53a
|
aquatic_ws: clean torrent state periodically
|
2020-05-12 15:45:28 +02:00 |
|
Joakim Frostegård
|
de06931242
|
aquatic_ws: in remove_inactive_connections, run shrink_to_fit on map
|
2020-05-12 15:24:57 +02:00 |
|
Joakim Frostegård
|
e4bdfd06fb
|
aquatic_ws: set so_reuseport on socket, with new create_listener fn
|
2020-05-12 15:23:25 +02:00 |
|
Joakim Frostegård
|
21048727db
|
aquatic_ws: add Config, use in many places; use cli_helpers for cli
Also add mimalloc
|
2020-05-12 14:58:55 +02:00 |
|
Joakim Frostegård
|
2d56ac7c21
|
aquaticc ws: handle_announce_requests: add #[inline] to helper fn
|
2020-05-12 12:29:05 +02:00 |
|
Joakim Frostegård
|
499c04d621
|
aquatic_ws: derive Copy on twenty byte structures, avoid clones
|
2020-05-12 12:26:49 +02:00 |
|
Joakim Frostegård
|
e76b54e697
|
aquatic_ws: twenty byte serde: improve comment
|
2020-05-12 12:24:50 +02:00 |
|
Joakim Frostegård
|
7155f493d9
|
aquatic_ws: add serialization for 20-byte structures
|
2020-05-12 00:22:45 +02:00 |
|
Joakim Frostegård
|
9030944c02
|
aquatic_ws: deserialize 20 byte strings: improve code
|
2020-05-11 23:35:45 +02:00 |
|
Joakim Frostegård
|
761952513f
|
remove unused dependencies from aquatic_ws; run cargo update
|
2020-05-11 23:24:50 +02:00 |
|
Joakim Frostegård
|
18c4a51b74
|
aquatic_ws: use [u8; 20] for info hash etc, fix deserialization
|
2020-05-11 23:20:58 +02:00 |
|
Joakim Frostegård
|
5c83af9f88
|
Move some code from aquatic_udp into aquatic_common
|
2020-05-11 17:06:37 +02:00 |
|
Joakim Frostegård
|
1b8d74e26d
|
rename aquatic to aquatic_udp, same for bench and load test crates
|
2020-05-11 16:55:46 +02:00 |
|
Joakim Frostegård
|
f3f2023306
|
aquatic_ws: update comments
|
2020-05-11 16:27:42 +02:00 |
|
Joakim Frostegård
|
f1a20b0c8c
|
aquatic_ws: add some fixme comments, update ValidUntil time
|
2020-05-11 16:22:30 +02:00 |
|
Joakim Frostegård
|
b76f8cdebc
|
aquatic_ws: shorten field names in ConnectionMeta, PeerConnection
|
2020-05-11 16:19:40 +02:00 |
|
Joakim Frostegård
|
da2d5986b9
|
aquatic_ws: check for "fake" peer_id's in announce requests
|
2020-05-11 16:07:51 +02:00 |
|
Joakim Frostegård
|
9fc9f2fd9c
|
aquatic_ws: network: remove inactive connections
|
2020-05-11 15:41:39 +02:00 |
|
Joakim Frostegård
|
87290f4289
|
aquatic_ws: rename "read_and_forward_in_messages; move around code
|
2020-05-11 14:42:27 +02:00 |
|
Joakim Frostegård
|
6136184890
|
aquatic_ws: network: handle network errors better
|
2020-05-11 14:36:47 +02:00 |
|
Joakim Frostegård
|
656b0da3c6
|
aquatic_ws: use fn handle_handshake_result in one more location
|
2020-05-11 14:29:27 +02:00 |
|
Joakim Frostegård
|
583d323c7f
|
aquatic_ws: create fn handle_handshake_result
|
2020-05-11 14:25:35 +02:00 |
|
Joakim Frostegård
|
274799872f
|
aquatic_ws: clean up; remove connection on IO error; update TODO
|
2020-05-11 14:13:58 +02:00 |
|
Joakim Frostegård
|
e4bb851c10
|
aquatic_ws: in listener, remove previous connection if it exists
|
2020-05-11 14:04:13 +02:00 |
|
Joakim Frostegård
|
0ec73d6cea
|
aquatic_ws: network: ConnectionMap: use Token as key
|
2020-05-11 13:55:28 +02:00 |
|
Joakim Frostegård
|
a85a72ff66
|
WIP: aquatic_ws: network: improve connection map & token code
|
2020-05-11 13:45:17 +02:00 |
|
Joakim Frostegård
|
003e5f2df9
|
WIP: aquatic_ws: rewrite network code, announce working somewhat
|
2020-05-10 20:24:04 +02:00 |
|