mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-09 21:26:14 +03:00
Increase reconnect timeout
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
218f2fd0fe
commit
b9110c9268
@ -20,7 +20,7 @@ use project::Project;
|
|||||||
use std::{mem, sync::Arc, time::Duration};
|
use std::{mem, sync::Arc, time::Duration};
|
||||||
use util::{post_inc, ResultExt, TryFutureExt};
|
use util::{post_inc, ResultExt, TryFutureExt};
|
||||||
|
|
||||||
pub const RECONNECT_TIMEOUT: Duration = client::RECEIVE_TIMEOUT;
|
pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(30);
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
|
@ -57,7 +57,7 @@ use tokio::sync::watch;
|
|||||||
use tower::ServiceBuilder;
|
use tower::ServiceBuilder;
|
||||||
use tracing::{info_span, instrument, Instrument};
|
use tracing::{info_span, instrument, Instrument};
|
||||||
|
|
||||||
pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(5);
|
pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(30);
|
||||||
pub const CLEANUP_TIMEOUT: Duration = Duration::from_secs(10);
|
pub const CLEANUP_TIMEOUT: Duration = Duration::from_secs(10);
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
|
@ -114,7 +114,7 @@ pub struct ConnectionState {
|
|||||||
|
|
||||||
const KEEPALIVE_INTERVAL: Duration = Duration::from_secs(1);
|
const KEEPALIVE_INTERVAL: Duration = Duration::from_secs(1);
|
||||||
const WRITE_TIMEOUT: Duration = Duration::from_secs(2);
|
const WRITE_TIMEOUT: Duration = Duration::from_secs(2);
|
||||||
pub const RECEIVE_TIMEOUT: Duration = Duration::from_secs(5);
|
pub const RECEIVE_TIMEOUT: Duration = Duration::from_secs(10);
|
||||||
|
|
||||||
impl Peer {
|
impl Peer {
|
||||||
pub fn new(epoch: u32) -> Arc<Self> {
|
pub fn new(epoch: u32) -> Arc<Self> {
|
||||||
|
Loading…
Reference in New Issue
Block a user