Skip to content

Commit

Permalink
0.4 (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimonPost authored Sep 24, 2020
1 parent 3411ee7 commit ee852ae
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "laminar"
version = "0.3.2"
version = "0.4.0"
authors = [
"Lucio Franco <[email protected]>",
"Fletcher Haynes <[email protected]>",
Expand All @@ -22,17 +22,17 @@ edition = "2018"
[dependencies]
byteorder = "1.3"
crc = "1.8"
crossbeam-channel = "0.3"
crossbeam-channel = "0.4"
lazy_static = "1.4"
log = "0.4"
rand = "0.7"
rand_pcg = "0.2"

clap = { version = "2.33", features = ["yaml"], optional = true }
env_logger = { version = "0.6", optional = true }
env_logger = { version = "0.7", optional = true }

[dev-dependencies]
bincode = "1.1.4"
bincode = "1.3.1"
criterion = "0.3"
serde = "1.0"
serde_derive = "1.0"
Expand Down
13 changes: 13 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Change Log
This document contains information about the releases of this crate.

## [0.4.0] - 2019-09-24
- Better interface separation with clear functionality boundaries.
- Separated unit tests and integration tests.
- Removed `set_link_conditioner` from `Socket`
- Make `last_sent` sent with unreliable packets.
- Change allocations to iterators.
- Canonicalizes an "established connection" as requiring both a send and a receive from a given endpoint.
- Change `SocketEvent::Connect` to only fire when a connection has been established.
- Add `SocketEvent::Disconnect` to fire when a Timeout fires from an endpoint with an established connection.
- Change `SocketEvent::Timeout` to fire when a Timeout fires from an endpoint with an unestablished connection.
- Change heartbeats to only send after a connection has been established.
- Add a `max_unestablished_connections` config option to prevent connection memory overflow attack

## [0.3.2] - 2019-09-24
- Acknowledgement is sent after all fragments arrived
- Don't read out-of-bounds on malformed headers
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/fragmenter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Fragmentation {
} else {
0
};
((payload_length / fragment_size) + remainder)
(payload_length / fragment_size) + remainder
}

/// Splits the given payload into fragments and write those fragments to the passed packet data.
Expand Down

0 comments on commit ee852ae

Please sign in to comment.