mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 13:34:55 +08:00
Fix JS view connection timeout under heavy load (#1106)
This commit is contained in:
parent
115a3be526
commit
5fa9bbe01c
1 changed files with 11 additions and 5 deletions
|
@ -106,11 +106,17 @@ const JSView = {
|
|||
this.channel.off(`error:${this.props.ref}`, errorRef);
|
||||
};
|
||||
|
||||
this.channel.push("connect", {
|
||||
session_token: this.props.sessionToken,
|
||||
ref: this.props.ref,
|
||||
id: this.id,
|
||||
});
|
||||
this.channel.push(
|
||||
"connect",
|
||||
{
|
||||
session_token: this.props.sessionToken,
|
||||
ref: this.props.ref,
|
||||
id: this.id,
|
||||
},
|
||||
// If the client is very busy with executing JS we may reach the
|
||||
// default timeout of 10s, so we increase it
|
||||
30_000
|
||||
);
|
||||
},
|
||||
|
||||
updated() {
|
||||
|
|
Loading…
Add table
Reference in a new issue