kmod-midori / tokio-ssdp

A mininal SSDP device implementation using Tokio
MIT License
4 stars 1 forks source link

max-age is set constant to 100 #1

Open mike1703 opened 2 months ago

mike1703 commented 2 months ago

This line functions gives the impression that this sets the Cache-Control header: https://github.com/chengyuhui/tokio-ssdp/blob/ca5585c1065e148cfea2009c376453cb12f134cf/src/server.rs#L64-L68 But in handle_search() and in broadcast_alive() this is not used but hardcoded to 100 https://github.com/chengyuhui/tokio-ssdp/blob/ca5585c1065e148cfea2009c376453cb12f134cf/src/server.rs#L279 https://github.com/chengyuhui/tokio-ssdp/blob/ca5585c1065e148cfea2009c376453cb12f134cf/src/server.rs#L320

kmod-midori commented 2 months ago

Oh, I'll look into this when I get back to SSDP (pretty soon)