From 8c8af14ef93be61f683c555bd4577b534bb88349 Mon Sep 17 00:00:00 2001 From: Reckhou Date: Mon, 3 Jun 2013 15:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E5=A4=84=E7=90=86TC?= =?UTF-8?q?P=E8=BF=9E=E6=8E=A5=E7=9A=84goroutine=E5=9C=A8=E9=80=80?= =?UTF-8?q?=E5=87=BA=E5=89=8D=E5=85=B3=E9=97=AD=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ebook/08.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebook/08.1.md b/ebook/08.1.md index 99ab2c76..1e22a96e 100644 --- a/ebook/08.1.md +++ b/ebook/08.1.md @@ -256,7 +256,7 @@ Go语言中通过net包中的`DialTCP`函数来建立一个TCP连接,并返回 func handleClient(conn net.Conn) { conn.SetReadDeadline(time.Now().Add(2 * time.Minute)) // set 2 minutes timeout request := make([]byte, 128) // set maxium request length to 128KB to prevent flood attack - + defer conn.Close() // close connection before exit for { read_len, err := conn.Read(request)