From 85122869cfe4a16eb57f727325b627fb73ef8fe2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 28 Jan 2016 11:21:20 +0200 Subject: [PATCH] Removed misleading comment on ServeConn related to Hijack - this implementation detail is irrelevant to ServeConn caller --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 7d55a65..f62d77e 100644 --- a/server.go +++ b/server.go @@ -26,7 +26,7 @@ import ( // Connection c must immediately propagate all the data passed to Write() // to the client. Otherwise requests' processing may hang. // -// ServeConn closes c before returning unless Hijack is called. +// ServeConn closes c before returning. func ServeConn(c net.Conn, handler RequestHandler) error { v := serverPool.Get() if v == nil { @@ -1160,7 +1160,7 @@ var ( // Connection c must immediately propagate all the data passed to Write() // to the client. Otherwise requests' processing may hang. // -// ServeConn closes c before returning unless Hijack is called. +// ServeConn closes c before returning. func (s *Server) ServeConn(c net.Conn) error { if s.MaxConnsPerIP > 0 { pic := wrapPerIPConn(s, c)