Skip to content

Commit

Permalink
0.7.0 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
aecsocket authored Aug 25, 2024
1 parent f2a3ab8 commit fa86997
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 56 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["gamedev", "network", "bevy"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aecsocket/aeronet"
rust-version = "1.80.0"
version = "0.7.0-alpha.3"
version = "0.7.0"

[workspace.lints.rust]
missing_docs = "warn"
Expand All @@ -31,12 +31,12 @@ similar_names = "allow"
struct_excessive_bools = "allow"

[workspace.dependencies]
aeronet = { version = "0.7.0-alpha.3", path = "crates/aeronet" }
aeronet_channel = { version = "0.7.0-alpha.3", path = "crates/aeronet_channel" }
aeronet_proto = { version = "0.7.0-alpha.3", path = "crates/aeronet_proto" }
aeronet_replicon = { version = "0.7.0-alpha.3", path = "crates/aeronet_replicon" }
aeronet_steam = { version = "0.7.0-alpha.3", path = "crates/aeronet_steam" }
aeronet_webtransport = { version = "0.7.0-alpha.3", path = "crates/aeronet_webtransport" }
aeronet = { version = "0.7.0", path = "crates/aeronet" }
aeronet_channel = { version = "0.7.0", path = "crates/aeronet_channel" }
aeronet_proto = { version = "0.7.0", path = "crates/aeronet_proto" }
aeronet_replicon = { version = "0.7.0", path = "crates/aeronet_replicon" }
aeronet_steam = { version = "0.7.0", path = "crates/aeronet_steam" }
aeronet_webtransport = { version = "0.7.0", path = "crates/aeronet_webtransport" }

ahash = { version = "0.8.11", default-features = false, features = [
"std",
Expand Down
82 changes: 45 additions & 37 deletions crates/aeronet_proto/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/aeronet_webtransport/src/internal/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use super::{ClientEndpoint, Connection, ConnectionMeta, InternalError};

const STATS_UPDATE_INTERVAL: Duration = Duration::from_millis(500);

const DC_ERROR_CODE: u32 = 0;
const DISCONNECT_ERROR_CODE: u32 = 0;

#[allow(clippy::unnecessary_wraps)] // on WASM, must match fn sig
pub fn create_client_endpoint(config: ClientConfig) -> Result<ClientEndpoint, ClientError> {
Expand Down Expand Up @@ -97,7 +97,7 @@ pub async fn handle_connection<E: maybe::Send + 'static>(
use wasm_bindgen_futures::JsFuture;

let mut close_info = WebTransportCloseInfo::new();
close_info.close_code(DC_ERROR_CODE);
close_info.close_code(DISCONNECT_ERROR_CODE);
close_info.reason(&reason);

// TODO: This seems to not close the connection properly
Expand All @@ -111,7 +111,7 @@ pub async fn handle_connection<E: maybe::Send + 'static>(
{
use wtransport::VarInt;

conn.0.close(VarInt::from_u32(DC_ERROR_CODE), reason.as_bytes());
conn.0.close(VarInt::from_u32(DISCONNECT_ERROR_CODE), reason.as_bytes());
conn.0.closed().await;
}
}
Expand Down

0 comments on commit fa86997

Please sign in to comment.