File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ fn main() {
376376 let writer_stream = stream. try_clone ( ) . expect ( "failed to clone UDS stream" ) ;
377377 set_cloexec ( writer_stream. as_raw_fd ( ) )
378378 . expect ( "failed to set CLOEXEC on cloned stream" ) ;
379- let ( ipc_tx, ipc_rx) = crossbeam_channel:: unbounded :: < Vec < u8 > > ( ) ;
379+ let ( ipc_tx, ipc_rx) = crossbeam_channel:: bounded :: < Vec < u8 > > ( 1024 ) ;
380380 let call_id_router: CallIdRouter = Arc :: new ( Mutex :: new ( HashMap :: new ( ) ) ) ;
381381
382382 // Spawn dedicated writer thread — only this thread writes to the socket
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ impl SessionManager {
9090 return Err ( format ! ( "session {} already exists" , session_id) ) ;
9191 }
9292
93- let ( tx, rx) = crossbeam_channel:: unbounded ( ) ;
93+ let ( tx, rx) = crossbeam_channel:: bounded ( 256 ) ;
9494 let slot_control = Arc :: clone ( & self . slot_control ) ;
9595 let max = self . max_concurrency ;
9696 let ipc_tx = self . ipc_tx . clone ( ) ;
You can’t perform that action at this time.
0 commit comments