repl: Pass session id to kernel connections (#15389)
Updated runtimelib to 0.14 and passed a kernel session ID through to identify our client. Release Notes: - N/A
This commit is contained in:
parent
771a7bb4b6
commit
bb188f673e
4 changed files with 27 additions and 6 deletions
|
@ -19,6 +19,7 @@ use std::{
|
|||
path::PathBuf,
|
||||
sync::Arc,
|
||||
};
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct KernelSpecification {
|
||||
|
@ -228,9 +229,17 @@ impl RunningKernel {
|
|||
.spawn()
|
||||
.context("failed to start the kernel process")?;
|
||||
|
||||
let mut iopub_socket = connection_info.create_client_iopub_connection("").await?;
|
||||
let mut shell_socket = connection_info.create_client_shell_connection().await?;
|
||||
let mut control_socket = connection_info.create_client_control_connection().await?;
|
||||
let session_id = Uuid::new_v4().to_string();
|
||||
|
||||
let mut iopub_socket = connection_info
|
||||
.create_client_iopub_connection("", &session_id)
|
||||
.await?;
|
||||
let mut shell_socket = connection_info
|
||||
.create_client_shell_connection(&session_id)
|
||||
.await?;
|
||||
let mut control_socket = connection_info
|
||||
.create_client_control_connection(&session_id)
|
||||
.await?;
|
||||
|
||||
let (mut iopub, iosub) = futures::channel::mpsc::channel(100);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue