@@ -401,7 +401,7 @@ impl DfdaemonUpload for DfdaemonUploadServerHandler {
401401 let download_clone = download. clone ( ) ;
402402 let task_manager_clone = self . task . clone ( ) ;
403403 let task_clone = task. clone ( ) ;
404- let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 10 * 1024 ) ;
404+ let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 16 ) ;
405405
406406 // Define the error handler to send the error to the stream.
407407 async fn handle_error (
@@ -875,7 +875,7 @@ impl DfdaemonUpload for DfdaemonUploadServerHandler {
875875 let download_quic_port = self . config . storage . server . quic_port ;
876876
877877 // Initialize stream channel.
878- let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 10 * 1024 ) ;
878+ let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 128 ) ;
879879 tokio:: spawn (
880880 async move {
881881 match task_manager. get ( task_id. as_str ( ) ) {
@@ -1161,7 +1161,7 @@ impl DfdaemonUpload for DfdaemonUploadServerHandler {
11611161 let interface = self . interface . clone ( ) ;
11621162
11631163 // Initialize stream channel.
1164- let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 10 * 1024 ) ;
1164+ let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 128 ) ;
11651165 tokio:: spawn (
11661166 async move {
11671167 // Start the host info update loop.
@@ -1305,7 +1305,7 @@ impl DfdaemonUpload for DfdaemonUploadServerHandler {
13051305 let request_clone = request. clone ( ) ;
13061306 let task_manager_clone = self . persistent_cache_task . clone ( ) ;
13071307 let task_clone = task. clone ( ) ;
1308- let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 10 * 1024 ) ;
1308+ let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 16 ) ;
13091309
13101310 // Define the error handler to send the error to the stream.
13111311 async fn handle_error (
@@ -1620,7 +1620,7 @@ impl DfdaemonUpload for DfdaemonUploadServerHandler {
16201620 let download_quic_port = self . config . storage . server . quic_port ;
16211621
16221622 // Initialize stream channel.
1623- let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 10 * 1024 ) ;
1623+ let ( out_stream_tx, out_stream_rx) = mpsc:: channel ( 128 ) ;
16241624 tokio:: spawn (
16251625 async move {
16261626 match persistent_cache_task_manager. get ( task_id. as_str ( ) ) {
0 commit comments