Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 2e17754

Browse files
committed
Increase websocet buffer size
1 parent 61023c8 commit 2e17754

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

websocket-tcp-proxy/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async fn handle_socket(mut socket: WebSocket, ip: String, port: String) {
114114

115115
let mut server_stream = server_stream.unwrap();
116116

117-
let mut buf = [0u8; 16384]; // the max ssl record should be 16384 by default
117+
let mut buf = [0u8; 65536]; // the max lightning message size is 65536
118118

119119
loop {
120120
tokio::select! {

0 commit comments

Comments
 (0)