Project

General

Profile

Feature #3705 ยป 099-98-Trace_HTTP_RTSP_headers-patch.diff

Patch - Jordi Font, 2016-04-08 01:23

View differences:

tvheadend/src/http.c 2016-04-04 14:12:17.307511782 +0200
328 331

  
329 332
  htsbuf_append_str(&hdrs, "\r\n");
330 333

  
334
  char srt[4096];
335
  htsbuf_peek(&hdrs,srt,4095);
336
  tvhtrace("http", "Send HEADER >>\n%s\n>>",srt);
337

  
331 338
  tcp_write_queue(hc->hc_fd, &hdrs);
332 339
}
333 340

  
334
-- tvheadend/src/satip/rtsp.c	2016-04-04 14:00:41.187765643 +0200
341
++ tvheadend/src/satip/rtsp.c	2016-04-04 14:15:20.085543875 +0200
......
1317 1318
  pthread_mutex_lock(&hc->hc_fd_lock);
1318 1319
  http_send_header(hc, HTTP_STATUS_OK, "application/sdp", q.hq_size,
1319 1320
                   NULL, NULL, 0, NULL, NULL, &args);
1321

  
1322
  char srt[4096];
1323
  htsbuf_peek(&q,srt,4095);
1324
  tvhtrace("satips", "Send BODY\n>>\n%s\n>>",srt);
1325

  
1320 1326
  tcp_write_queue(hc->hc_fd, &q);
1321 1327
  pthread_mutex_unlock(&hc->hc_fd_lock);
1322 1328
  http_arg_flush(&args);
    (1-1/1)