summaryrefslogtreecommitdiff
path: root/lgc/lgc.go
diff options
context:
space:
mode:
Diffstat (limited to 'lgc/lgc.go')
-rw-r--r--lgc/lgc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lgc/lgc.go b/lgc/lgc.go
index a32bb36..1f6332d 100644
--- a/lgc/lgc.go
+++ b/lgc/lgc.go
@@ -126,6 +126,10 @@ func (lgd *LoadGeneratingConnectionDownload) SetGotConnTimeInfo(
now time.Time,
gotConnInfo httptrace.GotConnInfo,
) {
+ if gotConnInfo.Reused {
+ fmt.Printf("Unexpectedly reusing a connection!\n")
+ panic(!gotConnInfo.Reused)
+ }
lgd.stats.GetConnectionDoneTime = now
lgd.stats.ConnInfo = gotConnInfo
if debug.IsDebug(lgd.debug) {