mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
WIP
This commit is contained in:
parent
959c32c01e
commit
b606d34e26
3 changed files with 8 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ pub fn transport_config() -> TransportConfig {
|
|||
// FIXME higher timeouts and keep alive
|
||||
let mut transport = TransportConfig::default();
|
||||
transport
|
||||
.max_idle_timeout(Some(Duration::from_millis(2000).try_into().unwrap()))
|
||||
.max_idle_timeout(Some(Duration::from_millis(5000).try_into().unwrap()))
|
||||
.keep_alive_interval(Some(Duration::from_millis(200)));
|
||||
transport
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ impl ConnectionManager {
|
|||
let _ = cancel.send(()).await;
|
||||
}
|
||||
|
||||
// Why is at zero sometimes?
|
||||
let last_connection_id = self.last_connection_id;
|
||||
let mut insert_connection = |own_connection: OwnConnection| {
|
||||
if self
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@ use std::{env::set_current_dir, time::Duration};
|
|||
use assert_fs::TempDir;
|
||||
use reaction_plugin::{ActionImpl, Exec, PluginInfo, StreamImpl};
|
||||
use serde_json::json;
|
||||
use tokio::{fs, time::timeout};
|
||||
use tokio::{
|
||||
fs,
|
||||
time::{sleep, timeout},
|
||||
};
|
||||
use treedb::time::now;
|
||||
|
||||
use crate::{
|
||||
|
|
@ -258,6 +261,8 @@ async fn n_nodes_simultaneous_startup() {
|
|||
actions.push((action, name));
|
||||
}
|
||||
|
||||
sleep(Duration::from_millis(100 * n as u64)).await;
|
||||
|
||||
for m in ["test1", "test2", "test3", "test4", "test5"] {
|
||||
let time = now().into();
|
||||
for (i, (action, from)) in actions.iter().enumerate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue