Joakim Frostegård
3ac12b947f
ws: add prometheus support (active connections, requests, responses)
2023-01-17 20:27:43 +01:00
Joakim Frostegård
3a6101a02d
Remove unused dependencies (ws: "either", http_protocol: "rand)
2023-01-10 15:51:15 +01:00
Joakim Frostegård
d53d0a64e6
Upgrade tungstenite to 0.18, async-tungstenite to 0.19
2023-01-03 18:45:02 +01:00
Joakim Frostegård
a04fab43fb
Upgrade async-tungstenite to version 0.18
2022-11-12 14:57:21 +01:00
Joakim Frostegård
9ace8f53b8
Upgrade hashbrown to version 0.13
2022-11-12 14:37:53 +01:00
Joakim Frostegård
65a8c9d6ff
Use Rust 1.64 workspace inheritance
2022-09-25 11:40:43 +02:00
Joakim Frostegård
3b94b8e588
WIP: ws: parse X-FORWARDED-FOR headers
2022-07-19 00:56:27 +02:00
Joakim Frostegård
945ff41ef2
Update crate descriptions
2022-06-27 22:44:45 +02:00
Joakim Frostegård
cc1eda80a7
Update rustls-pemfile to v1.0.0
2022-05-10 23:16:04 +02:00
Joakim Frostegård
c229872134
Use idiomatic feature names & namespace support from Rust 1.60
2022-04-10 01:25:03 +02:00
Joakim Frostegård
bd6764afaf
Move aquatic_cli_helpers code into aquatic_common and remove crate
2022-04-06 19:02:39 +02:00
Joakim Frostegård
908e18360c
Merge branch 'master' into cpu-pinning-2022-03-30
2022-04-04 22:49:25 +02:00
Joakim Frostegård
c18a59b0cb
Use proper workspace path declarations, remove workspace patch section
2022-04-04 12:46:42 +02:00
Joakim Frostegård
58ac5e7fe8
ws: use create_rustls_config from aquatic_common
2022-04-03 19:46:05 +02:00
Joakim Frostegård
fb607ac0c2
Improve CPU pinning
2022-03-30 22:53:15 +02:00
Joakim Frostegård
d78b0fa31e
Bump version to 0.2.0 for all aquatic crates
2022-03-26 11:39:37 +01:00
Joakim Frostegård
90437e23bb
Cargo.toml files: add readme keys, remove some exclude keys
2022-03-26 11:39:04 +01:00
Joakim Frostegård
a9f1aeb70c
Add crate keywords, update descriptions
2022-03-20 20:41:56 +01:00
Joakim Frostegård
06a716f78a
ws: implement network.only_ipv6 and network.tcp_backlog
2022-03-20 18:41:41 +01:00
Joakim Frostegård
07cc575e39
ws: sort dependencies alphabetically
2022-03-18 15:51:56 +01:00
Joakim Frostegård
667cf04085
ws: remove mio implementation
2022-03-18 15:15:34 +01:00
Joakim Frostegård
3785e57513
Sort dependencies in Cargo.toml files
2022-02-20 01:44:34 +01:00
Joakim Frostegård
f6a7514fb8
Update to glommio version 0.7 (using crates.io instead of git version)
2022-02-19 15:32:25 +01:00
Joakim Frostegård
14a4c10546
s/toml_config/aquatic_toml_config/
2022-02-19 15:11:00 +01:00
Joakim Frostegård
8abdf702b7
Update tungstenite and async-tungstenite to 0.17
2022-02-19 14:48:57 +01:00
Joakim Frostegård
7c8c67b847
Update rustls-pemfile to 0.3
2022-02-19 14:46:16 +01:00
Joakim Frostegård
f56d482760
ws: update parking_lot to 0.12
2022-02-19 14:38:18 +01:00
Joakim Frostegård
4073a1b8be
Update hashbrown to 0.12
2022-02-19 14:32:31 +01:00
Joakim Frostegård
a208775104
Include documentation in printed config files ( #41 )
...
* Start work on printing toml config with comments
* WIP: toml_config: extract default values for fields
* WIP: toml_config: handle single-level nested structs
* WIP: toml_config: improve comment handling, std type trait impls
* WIP: toml_config: add Private trait, improve comment handling, clean up
* toml_config: fix default value bug; improve tests
* Use toml_config in all applicable crates; add toml_config enum support
* toml_config: improve comments
* toml_config_derive: support enum comments
* Improve config comments for udp, cli_helpers, common
* Improve config comments
* Add tests for Config struct TomlConfig implementations
* Improve Config comments
* Improve Config comments
* ws, http: add config comments for tls cert and private key lines
* small fixes to toml_config and toml_config_derive
* Run cargo fmt
* Fix typo in several config comments
* Update README
* Update README
2021-12-26 11:33:27 +01:00
Joakim Frostegård
67c4c02bbd
aquatic_ws: mio: replace native_tls with rustls, rewrite connection state logic completely ( #38 )
...
* ws: mio: use rustls, rewrite Connection logic
* ws: mio: improve poll register/deregister handling
* ws: mio: work on type-level poll registry safety
* ws: mio: use stronger poll registry type-level guarantees
* ws: mio: fix stream reading
* ws: clean up, run fmt
* ws: mio: don't require registered connection for writing, improve docs
* ws: mio: add Connection::get_meta(), make Connection::meta private
* ws: mio: add ConnectionMap struct; remove utils.rs
* ws: mio: move token counter into ConnectionMap, improve docs
* ws: mio: connection: move Connection struct above state structs
* Update TODO
* ws: fix build errors
* ws: upgrade to tungstenite 0.16
* ws load test: don't panic on Close message; print shorter errors
* ws: fix socket worker bugs, add log statements
* ws: mio: wait for write availability if would block for ws messages
* Update README
* ws: mio: limit channels & queues; read 1 message only; other fixes
* ws: mio: send local responses each event; decrease channel size
* Update TODO
* ws: mio: limit ws send queue, fixing memory leak; limit pending messages
Also change some log output levels and run rustfmt
* Update TODO
* Update TODO
2021-12-16 16:09:36 +01:00
Joakim Frostegård
222fac0e09
Improve aquatic_ws glommio implementation, fixing memory leak ( #37 )
...
* ws: upgrade tungstenite and async-tungstenite to 0.16
* ws: use latest glommio
* ws: glommio: add config key connection_cleaning_interval
* ws: glommio: limit socket worker local channel size
Quick fix for memory leak
* ws: glommio: use prioritized task queue for sending responses
This is a start on trying to fix the large amount of responses
being dropped due to local response channel being full
* scripts/watch-threads.sh: don't highlight changes
* ws: glommio: await when sending responses from shared to local
* ws: glommio: limit ws message queue; add lots of ::log::warn for debug
* ws: glommio: add timeout to send_out_message, maybe pinpointing issue
* ws: glommio: clean up, tweak channel sizes; update TODO
* ws: glommio: set send timeout to 10s, add backpressure, accept drops
* ws: glommio: yield if needed in ConnectionReader backoff loop
* ws load test: add config key connection_creation_interval_ms
* ws load test: don't print "run connection" when opening connection
* ws load test: rename config num_connection to num_connections_per_worker
* ws load test config: improve order of code in file
* ws: glommio: info-level log for socket send timeout
* ws glommio: clean idle connections, improve cleaning code
* ws: glommio: make ConnectionWriter::send_error_response fallible; fmt
* ws: glommio: store JoinHandle in conn reference, cancel task on clean
* add scripts/heaptrack.sh
* Update TODO
2021-12-11 18:50:05 +01:00
Joakim Frostegård
d20e57d861
ws: use idiomatic folder structure
2021-11-27 18:19:43 +01:00
Joakim Frostegård
473276cd46
Switch to rust edition 2021
2021-11-24 18:56:26 +01:00
Joakim Frostegård
fee3c9ca4e
Update mio to version 0.8
2021-11-19 03:01:03 +01:00
Joakim Frostegård
028a366ce5
Don't unnecessarily constrain crate versions in Cargo.toml files
2021-11-19 02:45:53 +01:00
Joakim Frostegård
af8b776937
udp, ws: auto-enable cpu-pinning feature when running with glommio
2021-11-11 20:54:40 +01:00
Joakim Frostegård
4f8328b70a
Feature-gate CPU pinning, since it only works on Linux
2021-11-09 11:40:16 +01:00
Joakim Frostegård
b54694bbc0
aquatic_ws: improve cpu pinning
2021-11-07 11:46:48 +01:00
Joakim Frostegård
2bed6ccdc5
WIP: ws: split into features, other fixes
2021-11-05 13:25:19 +01:00
Joakim Frostegård
465cf5920d
WIP: ws: put back mio implementation
2021-11-05 12:42:55 +01:00
Joakim Frostegård
b8073e4bd1
Replace HashMap and IndexMap with indexmap_amortized
...
This will hopefully get down latency.
2021-11-03 10:35:29 +01:00
Joakim Frostegård
446fd0b1f4
aquatic_ws: use signals for access list updates
2021-11-02 23:29:04 +01:00
Joakim Frostegård
dcf86d2df2
aquatic_ws: remove unused statistics code and histogram dependency
2021-11-01 23:57:44 +01:00
Joakim Frostegård
24bfaf67c0
aquatic_ws: rewrite to use glommio
2021-11-01 19:08:00 +01:00
Joakim Frostegård
fae0692f90
Upgrade tungstenite
2021-08-16 23:22:56 +02:00
Joakim Frostegård
d172fc4f8c
Upgrade socket2
2021-08-15 23:32:59 +02:00
Joakim Frostegård
32541c5c15
Upgrade hashbrown
2021-08-15 22:29:09 +02:00
Joakim Frostegård
f728669401
Update tungstenite to version 0.13
2021-02-10 18:36:23 +01:00
Joakim Frostegård
405df71371
Upgrade tungstenite to version 0.12
2021-02-10 18:36:23 +01:00
Joakim Frostegård
f9626ade57
Upgrade quickcheck to 1.0, adjust code, optimizing a slow test
2021-02-10 18:36:23 +01:00