Hoverbear / old-raft-rs

[Incomplete] A Raft implementation in Rust
https://hoverbear.github.io/raft-rs/raft/
MIT License
266 stars 41 forks source link

Cleaned up the slab inserts for accepting connections (requires slab patch) #88

Closed WildCryptoFox closed 7 years ago

WildCryptoFox commented 9 years ago

Cleans up the accept_connection function such that we never insert into the slab unless the connection has already been registered. This cleans up the hacked together method to prevent the memory leak in the case that the register fails.

DO NOT MERGE UNTIL:

homu commented 9 years ago

:umbrella: The latest upstream changes (presumably #103) made this pull request unmergeable. Please resolve the merge conflicts.