Reduce connection timout to 10 seconds
This commit is contained in:
parent
a8570cf9c5
commit
2d2dab11ba
3 changed files with 5 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ Procedure when bumping the version number:
|
||||||
Options previously located at `euph.rooms.*` should be reviewed and moved to `euph.servers."euphoria.leet.nu".rooms.*`.
|
Options previously located at `euph.rooms.*` should be reviewed and moved to `euph.servers."euphoria.leet.nu".rooms.*`.
|
||||||
- Tweaked F1 popup
|
- Tweaked F1 popup
|
||||||
- Tweaked chat message editor when nick list is foused
|
- Tweaked chat message editor when nick list is foused
|
||||||
|
- Reduced connection timeout from 30 seconds to 10 seconds
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Room deletion popup accepting any room name
|
- Room deletion popup accepting any room name
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,6 @@ impl EuphRoom {
|
||||||
pub fn connect(&mut self, next_instance_id: &mut usize) {
|
pub fn connect(&mut self, next_instance_id: &mut usize) {
|
||||||
if self.room.is_none() {
|
if self.room.is_none() {
|
||||||
let room = self.vault().room();
|
let room = self.vault().room();
|
||||||
// TODO Decrease ping timeout
|
|
||||||
let instance_config = self
|
let instance_config = self
|
||||||
.server_config
|
.server_config
|
||||||
.clone()
|
.clone()
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ use std::collections::hash_map::Entry;
|
||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::{HashMap, HashSet};
|
||||||
use std::iter;
|
use std::iter;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
use cove_config::{Config, Keys, RoomsSortOrder};
|
use cove_config::{Config, Keys, RoomsSortOrder};
|
||||||
use cove_input::InputEvent;
|
use cove_input::InputEvent;
|
||||||
|
|
@ -60,7 +61,9 @@ impl EuphServer {
|
||||||
let cookies = logging_unwrap!(vault.cookies(domain.clone()).await);
|
let cookies = logging_unwrap!(vault.cookies(domain.clone()).await);
|
||||||
let config = ServerConfig::default()
|
let config = ServerConfig::default()
|
||||||
.domain(domain)
|
.domain(domain)
|
||||||
.cookies(Arc::new(Mutex::new(cookies)));
|
.cookies(Arc::new(Mutex::new(cookies)))
|
||||||
|
.timeout(Duration::from_secs(10));
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
config,
|
config,
|
||||||
next_instance_id: 0,
|
next_instance_id: 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue