Skip to content

Commit

Permalink
quick check for load testing
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdarkdragon committed Oct 13, 2020
1 parent ea0ed11 commit acf23d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/testers/mediadownloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ func (md *mediaDownloader) manifestDownloadLoop() {
}
if !pl.Live || pl.MediaType == m3u8.EVENT {
// VoD and Event's should show the entire playlist
glog.Infoln("VOD -----################")
glog.Infoln(string(b))
pl.SetWinSize(0)
md.isFinite = true
}
Expand Down Expand Up @@ -565,9 +567,10 @@ func (md *mediaDownloader) manifestDownloadLoop() {
if md.isFinite {
// VOD playlist will not change, does not need to download it again
if md.segmentsToDownload == 0 {
panic(fmt.Errorf("Playlist %s is VOD, but has no segments", surl))
// panic(fmt.Errorf("Playlist %s is VOD, but has no segments", surl))
glog.Error(fmt.Errorf("Playlist %s is VOD, but has no segments", surl))
}
return
// return
}
delay := 1 * time.Second
if md.sentTimesMap != nil || md.segmentsMatcher != nil {
Expand Down

0 comments on commit acf23d7

Please sign in to comment.