Close hostile recovery and concurrency gaps
This commit is contained in:
parent
696dae610a
commit
3f9b1b3543
1 changed files with 306 additions and 113 deletions
|
|
@ -516,6 +516,22 @@ fn duplicate_session_cli_and_anchor_identities_are_refused_while_registered() {
|
|||
first_server.join().unwrap().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn concurrent_connections_validate_publication_without_shared_file_offsets() {
|
||||
let directory = TestDirectory::new("concurrent-publication");
|
||||
let identity = generation_identity(7);
|
||||
let (face, _store) = publish(&directory, &identity);
|
||||
let clients = (40..56)
|
||||
.map(|value| {
|
||||
let face = Arc::clone(&face);
|
||||
thread::spawn(move || enroll(&face, ClientId::new(bytes(value))))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
for client in clients {
|
||||
client.join().unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn anonymous_connections_are_enrollment_only_bounded_and_exact_alpn_is_required() {
|
||||
let directory = TestDirectory::new("anonymous");
|
||||
|
|
|
|||
Loading…
Reference in a new issue