From dde91b5c5bbfb3070b09f1f7066e4f0d90f03446 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 12 Feb 2016 19:29:35 +0200 Subject: [PATCH] Explicitly state that the hijacked connection cannot be used after returning from HijackHandler --- server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.go b/server.go index eea62be..02e7474 100644 --- a/server.go +++ b/server.go @@ -321,6 +321,8 @@ type RequestCtx struct { // HijackHandler must process the hijacked connection c. // // The connection c is automatically closed after returning from HijackHandler. +// +// The connection c must not be used after returning from the handler. type HijackHandler func(c net.Conn) // Hijack registers the given handler for connection hijacking.