Skip to content

Commit

Permalink
dump streaming request headers
Browse files Browse the repository at this point in the history
to see if they can help solve #40
  • Loading branch information
dheijl committed May 26, 2021
1 parent 02aea18 commit 95ca415
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ chrono = "0.4.19"
cpal = "0.13.3"
crossbeam-channel = "0.5.1"
dirs = "3.0.2"
fltk = { version = "1.0.13", features = ["use-ninja"] }
fltk = { version = "1.0.14", features = ["use-ninja"] }
htmlescape = "0.3.1"
lazy_static = "1.4.0"
log = { version = "0.4.14", features = ["max_level_trace", "release_max_level_debug"] }
Expand Down
6 changes: 6 additions & 0 deletions src/server/streaming_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ pub fn run_server(
let feedback_tx_c = feedback_tx_c.clone();
// start streaming in a new thread and continue serving new requests
std::thread::spawn(move || {
if cfg!(debug_assertions) {
debug!("<== Incoming {:?}", rq);
for hdr in rq.headers() {
debug!(" <== Incoming Request {:?} from {}", hdr, rq.remote_addr());
}
}
// get remote ip
let remote_addr = format!("{}", rq.remote_addr());
let mut remote_ip = remote_addr.clone();
Expand Down

0 comments on commit 95ca415

Please sign in to comment.