Skip to content

Commit 59f7e50

Browse files
committed
Decrease embassy_net_ppp buffer size, keep connection alive
1 parent 811f98c commit 59f7e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/examples/webserver/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async fn main(spawner: embassy_executor::Spawner) {
155155
}
156156

157157
let (ppp_device, ppp_runner) = embassy_net_ppp::new(make_static!(
158-
embassy_net_ppp::State<1024, 1024>,
158+
embassy_net_ppp::State<64, 64>,
159159
embassy_net_ppp::State::new()
160160
));
161161

@@ -191,7 +191,7 @@ async fn main(spawner: embassy_executor::Spawner) {
191191
read_request: Some(Duration::from_secs(1)),
192192
write: Some(Duration::from_secs(1)),
193193
})
194-
.close_connection_after_response()
194+
.keep_connection_alive()
195195
);
196196

197197
for id in 0..WEB_TASK_POOL_SIZE {

0 commit comments

Comments
 (0)