Skip to content

Commit

Permalink
make sctp internal_buffer max_message_size
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Jan 20, 2024
1 parent 20e14e6 commit cea49cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rtc
Submodule rtc updated 1 files
+4 −4 sctp/src/config.rs
9 changes: 8 additions & 1 deletion src/handlers/sctp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ impl SctpHandler {
sctp_endpoint: Rc::clone(&sctp_endpoint),

transmits: VecDeque::new(),
internal_buffer: vec![0u8; 1500],
internal_buffer: vec![
0u8;
server_states
.server_config()
.sctp_server_config
.transport
.max_message_size() as usize
],
},
sctp_outbound: SctpOutbound {
server_states,
Expand Down

0 comments on commit cea49cc

Please sign in to comment.